barunsaha commited on
Commit
2fcd006
1 Parent(s): 9fcc9ee

Compute disk usage

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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