mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
This is a test hack, to see if chopping off some of the integer realtime's
data helps in lengthening the amount of time a server can be up without Weird Stuff(tm) happening.
This commit is contained in:
parent
6ead7c9ad4
commit
1ba994fd13
1 changed files with 4 additions and 1 deletions
|
@ -306,7 +306,10 @@ Sys_DoubleTime (void)
|
|||
static double start_time;
|
||||
|
||||
gettimeofday (&tp, &tzp);
|
||||
now = tp.tv_sec + tp.tv_usec / 1e6;
|
||||
|
||||
tp.tv_usec /= 1000; // lose some precision, we don't need it
|
||||
|
||||
now = tp.tv_sec + tp.tv_usec / 1000.0;
|
||||
|
||||
if (first) {
|
||||
first = false;
|
||||
|
|
Loading…
Reference in a new issue