File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66# System Imports 
77import  logging 
88import  os 
9+ import  platform 
910import  re 
1011import  sys 
1112import  time 
@@ -36,13 +37,13 @@ class UnexpectedError(Exception):
3637    pass 
3738
3839
39- import  platform 
40- if  platform .system () ==  'Linux'  or  platform .system () ==  'Darwin' :
40+ if  platform .system () ==  "Linux"  or  platform .system () ==  "Darwin" :
4141    import  resource 
42-     import  os 
4342
4443    # Get total system memory 
45-     total_memory  =  os .sysconf ('SC_PAGE_SIZE' ) *  os .sysconf ('SC_PHYS_PAGES' )    # Set memory limit to 80% of total system memory 
44+     total_memory  =  os .sysconf ("SC_PAGE_SIZE" ) *  os .sysconf (
45+         "SC_PHYS_PAGES" 
46+     )  # Set memory limit to 80% of total system memory 
4647    memory_limit  =  int (total_memory  *  0.8 )
4748
4849    # Set both soft and hard limits 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments