Ticket #3018: curs_lib.c.diff
| File curs_lib.c.diff, 0.8 kB (added by vinc17, 7 months ago) |
|---|
-
curs_lib.c
old new 377 377 dprint (1, (debugfile, "gettimeofday failed: %d\n", errno)); 378 378 /* if timestamp is 0 no time-based suppression is done */ 379 379 if (TimeInc) 380 progress->timestamp = tv.tv_sec * 1000 + tv.tv_usec / 1000; 380 progress->timestamp = (unsigned int) tv.tv_sec * 1000 381 + (unsigned int) (tv.tv_usec / 1000); 381 382 mutt_progress_update (progress, 0, 0); 382 383 } 383 384 … … 400 401 401 402 /* skip refresh if not enough time has passed */ 402 403 if (update && progress->timestamp && !gettimeofday (&tv, NULL)) { 403 now = tv.tv_sec * 1000 + tv.tv_usec / 1000; 404 now = (unsigned int) tv.tv_sec * 1000 405 + (unsigned int) (tv.tv_usec / 1000); 404 406 if (now && now - progress->timestamp < TimeInc) 405 407 update = 0; 406 408 }
