mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Fixed logging to work with realtime resets.
Tim McGrath (Misty)
This commit is contained in:
parent
bd82405643
commit
c848bf5c0c
1 changed files with 3 additions and 3 deletions
|
@ -565,12 +565,12 @@ SV_CheckLog (void)
|
|||
|
||||
sz = &svs.log[svs.logsequence & 1];
|
||||
|
||||
// bump sequence if allmost full, or ten minutes have passed and
|
||||
// bump sequence if almost full, or ten minutes have passed and
|
||||
// there is something still sitting there
|
||||
if (sz->cursize > LOG_HIGHWATER
|
||||
|| (realtime - svs.logtime > LOG_FLUSH && sz->cursize)) {
|
||||
|| (Sys_DoubleTime () - svs.logtime > LOG_FLUSH && sz->cursize)) {
|
||||
// swap buffers and bump sequence
|
||||
svs.logtime = realtime;
|
||||
svs.logtime = Sys_DoubleTime ();
|
||||
svs.logsequence++;
|
||||
sz = &svs.log[svs.logsequence & 1];
|
||||
sz->cursize = 0;
|
||||
|
|
Loading…
Reference in a new issue