bean spiller
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user