Thread: LLRnet enhancements View Single Post
 2008-03-09, 19:51 #1 kar_bon     Mar 2006 Germany 2×1,427 Posts LLRnet enhancements i looked around the LLRnet sources (*.lua files) and wonder if there is a way to print the date/time in the lresults-file like on the LLRnet-server results. and i found a way! it's not the best way but it works fine! insert the following lines (in red) in the "llrnet.lua" in the function Work() (little above the end of the function, around line 229): Code: (...) else ClearWorkfile() end local file = openfile("lresults.txt", "a") write(file, format("[%s] ", date("%c"))) closefile(file) if not asynchronous then SendAllResults((sendRetries or 0) + 1) end SendStructureToAllGUIs("tosend", tosend, 1) (...) the output in the "lresults.txt" without these lines: Code: 329*2^387216-1 is not prime. Res64: 471878A4A7F58281 Time : 160.390 sec. Result 329/387216 succesfully sent to the server. and with these lines: Code: 329*2^387216-1 is not prime. Res64: 471878A4A7F58281 Time : 160.390 sec. [03/09/08 20:37:46] Result 329/387216 succesfully sent to the server. please make copies of "llrnet.lua" and "lresults.txt" before changes and stop the client. the time in the result-file and on the client console differ by 2 seconds (result-file minus 2 seconds from console)! if there're any issues please post them here! karsten Last fiddled with by kar_bon on 2008-03-09 at 19:52