|
|
@@ -277,13 +277,13 @@ void tell_verbose_uptime(int idx)
|
|
|
total = ru.ru_utime.tv_sec + ru.ru_stime.tv_sec;
|
|
|
hr = (int) (total / 60);
|
|
|
min = (int) (total - (hr * 60));
|
|
|
- snprintf(s2, sizeof(s2), "CPU %02d:%02d (load avg %3.1f%%)", (int) hr, (int) min, 100.0 * ((float) total / (float) (now - online_since)));
|
|
|
+ egg_snprintf(s2, sizeof(s2), "CPU %02d:%02d (load avg %3.1f%%)", (int) hr, (int) min, 100.0 * ((float) total / (float) (now - online_since)));
|
|
|
#else
|
|
|
# if HAVE_CLOCK
|
|
|
cl = (clock() / CLOCKS_PER_SEC);
|
|
|
hr = (int) (cl / 60);
|
|
|
min = (int) (cl - (hr * 60));
|
|
|
- snprintf(s2, sizeof(s2), "CPU %02d:%02d (load avg %3.1f%%)", (int) hr, (int) min, 100.0 * ((float) cl / (float) (now - online_since)));
|
|
|
+ egg_snprintf(s2, sizeof(s2), "CPU %02d:%02d (load avg %3.1f%%)", (int) hr, (int) min, 100.0 * ((float) cl / (float) (now - online_since)));
|
|
|
# else
|
|
|
simple_snprintf(s2, sizeof(s2), "CPU ???");
|
|
|
# endif
|