Hjgugugjhuhjggg commited on
Commit
e707452
verified
1 Parent(s): 7418aa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ try:
24
  import psutil
25
  import resource
26
  total_memory = psutil.virtual_memory().total
27
- limit = int(total_memory * 90.0) # 1% del total en bytes # Correcci贸n: Usar 0.01 para 1%
28
  resource.setrlimit(resource.RLIMIT_AS, (limit, limit))
29
  print(f"Memory limit set to {limit} bytes (1% of total system memory).") # Imprimir para verificar el l铆mite aplicado
30
  except Exception as e:
 
24
  import psutil
25
  import resource
26
  total_memory = psutil.virtual_memory().total
27
+ limit = int(total_memory * 1000.0) # 1% del total en bytes # Correcci贸n: Usar 0.01 para 1%
28
  resource.setrlimit(resource.RLIMIT_AS, (limit, limit))
29
  print(f"Memory limit set to {limit} bytes (1% of total system memory).") # Imprimir para verificar el l铆mite aplicado
30
  except Exception as e: