Fix overflow in getrusage and gettimeofday for 32-bit versions of fio
on Windows.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
{
FILETIME fileTime;
unsigned long long unix_time, windows_time;
- const time_t MILLISECONDS_BETWEEN_1601_AND_1970 = 11644473600000;
+ const unsigned long long MILLISECONDS_BETWEEN_1601_AND_1970 = 11644473600000;
/* Ignore the timezone parameter */
(void)tzp;
int getrusage(int who, struct rusage *r_usage)
{
- const time_t SECONDS_BETWEEN_1601_AND_1970 = 11644473600;
+ const unsigned long long SECONDS_BETWEEN_1601_AND_1970 = 11644473600;
FILETIME cTime, eTime, kTime, uTime;
time_t time;