Обновление библеотеки dhaverdLogs
This commit is contained in:
		
							parent
							
								
									7714b7d932
								
							
						
					
					
						commit
						53fc98502b
					
				
										
											Binary file not shown.
										
									
								
							|  | @ -4,5 +4,6 @@ | |||
| 		"http://ideco.mcs.br/wpad.dat", | ||||
| 		"http://proxy.mcs.br:8080/array.dll?Get.Routing.Script" | ||||
| 	], | ||||
| 	"setRepeatTimeMs" : "60000" | ||||
| 	"setRepeatTimeMs" : "60000", | ||||
| 	"deleteBySevenDays" : "true" | ||||
| } | ||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -36,6 +36,7 @@ public class Main { | |||
|     public static void main(String[] args) throws IOException, ParseException { | ||||
|         setLogDir("logs"); | ||||
|         setLogName("startup"); | ||||
|         logCleaner(getDeleteTime()); | ||||
|         bindSocket(); | ||||
|         repeatTime = getRepeatTime(); | ||||
|         systemTray(); | ||||
|  |  | |||
|  | @ -71,4 +71,11 @@ public class loadConfig { | |||
|         return Integer.parseInt(result); | ||||
|     } | ||||
| 
 | ||||
|     public static boolean getDeleteTime() throws IOException, ParseException { | ||||
|         JSONObject jo = getJsonObjConfig(); | ||||
|         String result = String.valueOf(jo.get("deleteBySevenDays")); | ||||
|         setLog("Config Loading", "Delete by seven days: " + result, true, false); | ||||
|         return Boolean.parseBoolean(result); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue