Changeset b412168 in mainline for uspace/app/stats/stats.c
- Timestamp:
- 2014-11-17T03:25:04Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6069061
- Parents:
- ef3da5a (diff), 5042706 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/stats/stats.c
ref3da5a rb412168 191 191 static void print_uptime(void) 192 192 { 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); 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); 198 199 } 199 200
Note:
See TracChangeset
for help on using the changeset viewer.