czd358121692 commited on
Commit
6fac3f3
1 Parent(s): 96df846

free disk display

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -239,10 +239,10 @@ def check_disk_space(min_gb=10):
239
  disk_usage = psutil.disk_usage('/')
240
  gb_free = disk_usage.free / (1024 * 1024 * 1024)
241
  if gb_free < min_gb:
242
- print("Disk space: {gb_free:.1f}GB free")
243
  raise RuntimeError(f"Low disk space: {gb_free:.1f}GB free, need {min_gb}GB")
244
  else:
245
- print("Disk space: {gb_free:.1f}GB free")
246
  return True
247
 
248
  def smart_cleanup():
 
239
  disk_usage = psutil.disk_usage('/')
240
  gb_free = disk_usage.free / (1024 * 1024 * 1024)
241
  if gb_free < min_gb:
242
+ print("Disk space GB free" + gb_free)
243
  raise RuntimeError(f"Low disk space: {gb_free:.1f}GB free, need {min_gb}GB")
244
  else:
245
+ print("Disk space GB free" + gb_free)
246
  return True
247
 
248
  def smart_cleanup():