HTOP exclamation next to uptime
Published April 13th, 2011 | categories include: Informational, software, Ubuntu |
Share on Twitter
I was concerned when I logged into a fileserver and saw that the computer uptime, as displayed in HTOP, displayed an exclamation point (!) next to it. The exclamation point is hard coded into the htop configuration to notify you of the 100 day mark. I am not certain of the intent of the punctuation, however most any system that has not been restarted in 100 days and is public facing should likely be checked. This particular system is a file server and is only used on a LAN.
--- UptimeMeter.c.orig 2010-01-26 04:26:23.000000000 +0800
+++ UptimeMeter.c 2010-01-26 04:27:01.000000000 +0800
@@ -19,7 +19,7 @@
};
static void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
- double uptime;
+ double uptime = 0;
FILE* fd = fopen(PROCDIR "/uptime", "r");
fscanf(fd, "%lf", &uptime);
fclose(fd);
or
if (days > 100) {
sprintf(daysbuf, "%d days(!), ", days);
}
This particular Ubuntu box is a file server and does not have external access or internet (Yes, I did that on purpose). Next, I have to address why the server load is 0.00. Next post!
Previous Post: « Velociraptor-free ZoneDo you have something to say? Send me a message on my Google Plus profile.
Next Post: Google Chrome finger sweatbands – Chromercise »
