Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/stats/stats.c

    r1ab8539 r3e6a98c5  
    191191static void print_uptime(void)
    192192{
    193         struct timeval uptime;
    194         getuptime(&uptime);
    195        
    196         printf("%s: Up %ld days, %ld hours, %ld minutes, %ld seconds\n",
    197             NAME, uptime.tv_sec / DAY, (uptime.tv_sec % DAY) / HOUR,
    198             (uptime.tv_sec % HOUR) / MINUTE, uptime.tv_sec % MINUTE);
     193        sysarg_t uptime = stats_get_uptime();
     194        printf("%s: Up %" PRIun " days, %" PRIun " hours, "
     195            "%" PRIun " minutes, %" PRIun " seconds\n", NAME,
     196            uptime / DAY, (uptime % DAY) / HOUR,
     197            (uptime % HOUR) / MINUTE, uptime % MINUTE);
    199198}
    200199
Note: See TracChangeset for help on using the changeset viewer.