Ticket #3018: intfix.diff

File intfix.diff, 0.9 kB (added by pdmef, 8 weeks ago)
  • curs_lib.c

    diff --git a/curs_lib.c b/curs_lib.c
    a b  
    377377    dprint (1, (debugfile, "gettimeofday failed: %d\n", errno)); 
    378378  /* if timestamp is 0 no time-based suppression is done */ 
    379379  if (TimeInc) 
    380     progress->timestamp = (unsigned int) (tv.tv_sec * 1000) 
     380    progress->timestamp = ((unsigned int) tv.tv_sec * 1000) 
    381381        + (unsigned int) (tv.tv_usec / 1000); 
    382382  mutt_progress_update (progress, 0, 0); 
    383383} 
     
    401401 
    402402  /* skip refresh if not enough time has passed */ 
    403403  if (update && progress->timestamp && !gettimeofday (&tv, NULL)) { 
    404     now = (unsigned int) (tv.tv_sec * 1000) 
     404    now = ((unsigned int) tv.tv_sec * 1000) 
    405405          + (unsigned int) (tv.tv_usec / 1000); 
    406406    if (now && now - progress->timestamp < TimeInc) 
    407407      update = 0;