Changeset 231b3fd in mainline for uspace/app/top/screen.c


Ignore:
Timestamp:
2018-08-25T21:35:26Z (8 years ago)
Author:
GitHub <noreply@…>
Parents:
e2625b1a (diff), 3c45353 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jakub Jermář <jakub@…> (2018-08-25 21:35:26)
git-committer:
GitHub <noreply@…> (2018-08-25 21:35:26)
Message:

Merge 3c453534a2b093c8039d8e8059b923c71f3492a3 into e2625b1a1e5a2895b86f0e39c2d70a39e49e042a

File:
1 edited

Legend:

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

    re2625b1a r231b3fd  
    4949#include "top.h"
    5050
    51 #define USEC_COUNT  1000000
    52 
    53 static suseconds_t timeleft = 0;
     51static usec_t timeleft = 0;
    5452
    5553console_ctrl_t *console;
     
    5755static sysarg_t warning_col = 0;
    5856static sysarg_t warning_row = 0;
    59 static suseconds_t warning_timeleft = 0;
     57static usec_t warning_timeleft = 0;
    6058static char *warning_text = NULL;
    6159
     
    179177static inline void print_global_head(data_t *data)
    180178{
    181         printf("top - %02lu:%02lu:%02lu up "
     179        printf("top - %02lld:%02lld:%02lld up "
    182180            "%" PRIun " days, %02" PRIun ":%02" PRIun ":%02" PRIun ", "
    183181            "load average:",
     
    527525        va_end(args);
    528526
    529         warning_timeleft = 2 * USEC_COUNT;
     527        warning_timeleft = SEC2USEC(2);
    530528
    531529        screen_moveto(warning_col, warning_row);
     
    537535 *
    538536 */
    539 int tgetchar(unsigned int sec)
     537int tgetchar(sec_t sec)
    540538{
    541539        /*
     
    544542
    545543        if (timeleft <= 0)
    546                 timeleft = sec * USEC_COUNT;
     544                timeleft = SEC2USEC(sec);
    547545
    548546        /*
Note: See TracChangeset for help on using the changeset viewer.