Procházet zdrojové kódy

Smaller Console Log Files

own3mall před 5 roky
rodič
revize
960e334797
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      ogp_agent.pl

+ 2 - 2
ogp_agent.pl

@@ -452,9 +452,9 @@ sub backup_home_log
 		if( -f $path_to_console_file){
 			push (@file_list, $path_to_console_file);
 			
-			# Backup and delete this specific file as well if it's over 200MB		
+			# Backup and delete this specific file as well if it's over 20MB		
 			my @stats = stat($path_to_console_file);
-			if($stats[7] >= 209715200){
+			if($stats[7] >= 20971520){
 				if(SCREEN_LOG_LOCAL == 1){
 					# Copy it to local log folder as well
 					my $local_log_folder = Path::Class::Dir->new("logs_backup");