Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/screen.c

    r205f1add r1abcf1d  
    4949#include "top.h"
    5050
    51 static usec_t timeleft = 0;
     51#define USEC_COUNT  1000000
     52
     53static suseconds_t timeleft = 0;
    5254
    5355console_ctrl_t *console;
     
    5557static sysarg_t warning_col = 0;
    5658static sysarg_t warning_row = 0;
    57 static usec_t warning_timeleft = 0;
     59static suseconds_t warning_timeleft = 0;
    5860static char *warning_text = NULL;
    5961
     
    177179static inline void print_global_head(data_t *data)
    178180{
    179         printf("top - %02lld:%02lld:%02lld up "
     181        printf("top - %02lu:%02lu:%02lu up "
    180182            "%" PRIun " days, %02" PRIun ":%02" PRIun ":%02" PRIun ", "
    181183            "load average:",
     
    525527        va_end(args);
    526528
    527         warning_timeleft = SEC2USEC(2);
     529        warning_timeleft = 2 * USEC_COUNT;
    528530
    529531        screen_moveto(warning_col, warning_row);
     
    535537 *
    536538 */
    537 int tgetchar(sec_t sec)
     539int tgetchar(unsigned int sec)
    538540{
    539541        /*
     
    542544
    543545        if (timeleft <= 0)
    544                 timeleft = SEC2USEC(sec);
     546                timeleft = sec * USEC_COUNT;
    545547
    546548        /*
Note: See TracChangeset for help on using the changeset viewer.