bean spiller

This commit is contained in:
Q
2023-01-22 13:31:46 +02:00
parent 115f631743
commit cd37185d2a
6 changed files with 251 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ Sample Rate: {sample_rate} Hz
def _mbstr(self, b):
try:
return "{:.1f}".format((float(b) / (1024 ** 2)))
return "{:.1f}".format((float(b) / (1024**2)))
except Exception:
return b
@@ -164,7 +164,7 @@ Sample Rate: {sample_rate} Hz
return self._sizefmt(float(b), suffix="bit/s")
try:
return "{:.1f}".format((float(b) / (1024 ** 2)))
return "{:.1f}".format((float(b) / (1024**2)))
except Exception:
return b