Changeset bbc28be in mainline for uspace/app/top/screen.c
- Timestamp:
- 2010-12-03T12:59:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70c85211
- Parents:
- 2e15ac40 (diff), da55d5b (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/top/screen.c
r2e15ac40 rbbc28be 150 150 screen_get_pos(&c, &r); 151 151 152 if (c < cols) 153 printf("%.*s", cols - c - 1, str); 152 if (c < cols) { 153 int pos = cols - c - 1; 154 printf("%.*s", pos, str); 155 } 154 156 } 155 157 156 158 static inline void print_global_head(data_t *data) 157 159 { 158 printf("top - %02lu:%02lu:%02lu up %u days, %02u:%02u:%02u, load average:", 160 printf("top - %02lu:%02lu:%02lu up " 161 "%" PRIun " days, %02" PRIun ":%02" PRIun ":%02" PRIun ", " 162 "load average:", 159 163 data->hours, data->minutes, data->seconds, 160 164 data->udays, data->uhours, data->uminutes, data->useconds); … … 171 175 static inline void print_task_summary(data_t *data) 172 176 { 173 printf("tasks: % u total", data->tasks_count);177 printf("tasks: %zu total", data->tasks_count); 174 178 screen_newline(); 175 179 } … … 211 215 } 212 216 213 printf("threads: % u total, %u running, %u ready, %u sleeping, %u lingering, "214 "% u other, %u invalid",217 printf("threads: %zu total, %zu running, %zu ready, " 218 "%zu sleeping, %zu lingering, %zu other, %zu invalid", 215 219 total, running, ready, sleeping, lingering, other, invalid); 216 220 screen_newline(); … … 295 299 order_suffix(task->virtmem, &virtmem, &virtmem_suffix); 296 300 297 printf("%-8" PRIu64 " %9 u %8" PRIu64 "%c ", task->task_id,301 printf("%-8" PRIu64 " %9zu %8" PRIu64 "%c ", task->task_id, 298 302 task->threads, virtmem, virtmem_suffix); 299 303 print_percent(perc->virtmem, 2);
Note:
See TracChangeset
for help on using the changeset viewer.