| 310 |
|
move(4,33); |
| 311 |
|
if (colors && stats.cpu_percents->user + stats.cpu_percents->nice > THRESHOLD_ALERT_CPU) { |
| 312 |
|
attron(A_STANDOUT); |
| 313 |
+ |
attron(A_BOLD); |
| 314 |
|
} |
| 315 |
|
else if (colors && stats.cpu_percents->user + stats.cpu_percents->nice > THRESHOLD_WARN_CPU) { |
| 316 |
|
attron(A_BOLD); |
| 330 |
|
move(2,74); |
| 331 |
|
if (colors && stats.process_count->zombie > THRESHOLD_WARN_ZMB) { |
| 332 |
|
attron(A_STANDOUT); |
| 333 |
+ |
attron(A_BOLD); |
| 334 |
|
} |
| 335 |
|
printw("%5d", stats.process_count->zombie); |
| 336 |
|
if(colors) { |
| 337 |
|
attroff(A_STANDOUT); |
| 338 |
< |
attron(COLOR_PAIR(6)); |
| 338 |
> |
attroff(A_BOLD); |
| 339 |
|
} |
| 340 |
|
move(3, 54); |
| 341 |
|
printw("%5d", stats.process_count->sleeping); |
| 378 |
|
float f = 100.00 * (float)(stats.mem_stats->used)/stats.mem_stats->total; |
| 379 |
|
if (colors && f > THRESHOLD_ALERT_MEM) { |
| 380 |
|
attron(A_STANDOUT); |
| 381 |
+ |
attron(A_BOLD); |
| 382 |
|
} |
| 383 |
|
else if (colors && f > THRESHOLD_WARN_MEM) { |
| 384 |
|
attron(A_BOLD); |
| 395 |
|
float f = 100.00 * (float)(stats.swap_stats->used)/stats.swap_stats->total; |
| 396 |
|
if (colors && f > THRESHOLD_ALERT_SWAP) { |
| 397 |
|
attron(A_STANDOUT); |
| 398 |
+ |
attron(A_BOLD); |
| 399 |
|
} |
| 400 |
|
else if (colors && f > THRESHOLD_WARN_SWAP) { |
| 401 |
|
attron(A_BOLD); |
| 514 |
|
move(line, 73); |
| 515 |
|
if(colors && 100.00 * ((float) disk_stat_ptr->used / (float) (disk_stat_ptr->used + disk_stat_ptr->avail)) > THRESHOLD_ALERT_DISK) { |
| 516 |
|
attron(A_STANDOUT); |
| 517 |
+ |
attron(A_BOLD); |
| 518 |
|
} else if (colors && 100.00 * ((float) disk_stat_ptr->used / (float) (disk_stat_ptr->used + disk_stat_ptr->avail)) > THRESHOLD_WARN_DISK) { |
| 519 |
|
attron(A_BOLD); |
| 520 |
|
} |