* hires.h (hires_ms::initime_ms): Delete.

(hires_ms::initime_us): Just define as LONGLONG.
(hires_ms::uptime): New function.
* select.cc (select_stuff::wait): Use gtod for timing to attempt to avoid
windows 32 bit wraparound.
* times.cc (systime): New function.
(times): Replace GetTickCount with gtod.uptime.
(hires_us::prime): Use systime() to calculate system time rather than calling
GetSystemTimeAsFileTime directly.
(hires_ms::prime): Ditto.  Eliminate initime_ms.
(hires_ms::usecs): Try harder to detect wraparound.
* fhandler_proc.cc (format_proc_partitions): Set drive_size to zero to avoid a
compiler warning.
This commit is contained in:
Christopher Faylor
2005-12-07 22:28:49 +00:00
parent c09178b052
commit 6c9a5ebbfc
5 changed files with 50 additions and 32 deletions

View File

@@ -997,6 +997,8 @@ format_proc_partitions (char *destbuf, size_t maxsize)
* dg->SectorsPerTrack
* dg->BytesPerSector;
}
else
drive_size = 0;
if (!pi && !pix && !dg)
debug_printf ("DeviceIoControl %E");
else