[BACK]Return to window-clock.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window-clock.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/06/27 14:40:22
Line 93 
Line 93 
 window_clock_timer(struct window_pane *wp)  window_clock_timer(struct window_pane *wp)
 {  {
         struct window_clock_mode_data   *data = wp->modedata;          struct window_clock_mode_data   *data = wp->modedata;
         struct tm                       *now, *then;          struct tm                        now, then;
         time_t                           t;          time_t                           t;
   
         t = time(NULL);          t = time(NULL);
         now = gmtime(&t);          gmtime_r(&t, &now);
         then = gmtime(&data->tim);          gmtime_r(&data->tim, &then);
         if (now->tm_min == then->tm_min)          if (now.tm_min == then.tm_min)
                 return;                  return;
         data->tim = t;          data->tim = t;
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2