diff options
Diffstat (limited to 'module/Utils.py')
-rw-r--r-- | module/Utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/Utils.py b/module/Utils.py index 0ba3fb035..1fdf2cbc6 100644 --- a/module/Utils.py +++ b/module/Utils.py @@ -93,6 +93,10 @@ def formatSize(size): return "%.2f %s" % (size, sizes[steps]) +def formatSpeed(speed): + return formatSize(speed) + "/s" + + def freeSpace(folder): if os.name == "nt": import ctypes |