Spaces:
Sleeping
Sleeping
Compute disk usage
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def get_disk_used_percentage() -> float:
|
|
| 77 |
:return: Percentage of the disk space currently used
|
| 78 |
"""
|
| 79 |
|
| 80 |
-
total, used, free = shutil.disk_usage(
|
| 81 |
total = total // GB_CONVERTER
|
| 82 |
used = used // GB_CONVERTER
|
| 83 |
free = free // GB_CONVERTER
|
|
|
|
| 77 |
:return: Percentage of the disk space currently used
|
| 78 |
"""
|
| 79 |
|
| 80 |
+
total, used, free = shutil.disk_usage(__file__)
|
| 81 |
total = total // GB_CONVERTER
|
| 82 |
used = used // GB_CONVERTER
|
| 83 |
free = free // GB_CONVERTER
|