Skip to content
Snippets Groups Projects
Commit 8266da9c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log an error if getstats() returns a failure

I saw my logon.jsonl file getting cycled multiple times a day recently on Vert
and suspect this function call may have been failing.
parent 52d9a03d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4567 passed
......@@ -599,7 +599,10 @@ uint sbbs_t::logonstats()
struct tm tm, update_tm;
sys_status&=~SS_DAILY;
getstats(&cfg, 0, &stats);
if(!getstats(&cfg, 0, &stats)) {
errormsg(WHERE, ERR_READ, "system stats");
return 0;
}
now=time(NULL);
if(stats.date > now+(24L*60L*60L)) /* More than a day in the future? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment