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

Revert "Revert "Log an error if getstats() returns a failure""

This reverts commit e12c3504.

Wrong commit reverted. Oops.
parent 7ff687ff
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4569 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.
Please register or to comment