top.c (38090) | top.c (42447) |
---|---|
1char *copyright = 2 "Copyright (c) 1984 through 1996, William LeFebvre"; 3 4/* 5 * Top users/processes display for Unix 6 * Version 3 7 * 8 * This program may be freely redistributed, --- 535 unchanged lines hidden (view full) --- 544 545 /* display the load averages */ 546 (*d_loadave)(system_info.last_pid, 547 system_info.load_avg); 548 549 /* display the current time */ 550 /* this method of getting the time SHOULD be fairly portable */ 551 time(&curr_time); | 1char *copyright = 2 "Copyright (c) 1984 through 1996, William LeFebvre"; 3 4/* 5 * Top users/processes display for Unix 6 * Version 3 7 * 8 * This program may be freely redistributed, --- 535 unchanged lines hidden (view full) --- 544 545 /* display the load averages */ 546 (*d_loadave)(system_info.last_pid, 547 system_info.load_avg); 548 549 /* display the current time */ 550 /* this method of getting the time SHOULD be fairly portable */ 551 time(&curr_time); |
552 i_uptime(&system_info.boottime, &curr_time); |
|
552 i_timeofday(&curr_time); 553 554 /* display process state breakdown */ 555 (*d_procstates)(system_info.p_total, 556 system_info.procstates); 557 558 /* display the cpu state percentage breakdown */ 559 if (dostates) /* but not the first time */ --- 462 unchanged lines hidden --- | 553 i_timeofday(&curr_time); 554 555 /* display process state breakdown */ 556 (*d_procstates)(system_info.p_total, 557 system_info.procstates); 558 559 /* display the cpu state percentage breakdown */ 560 if (dostates) /* but not the first time */ --- 462 unchanged lines hidden --- |