htop uptime easter egg
I never noticed this until today, but it turns out htop has a little easter egg:
When your server hits over 100 days of uptime, htop congratulates you with a little exclamation point :)
From UptimeMeter.c
if (days > 100) {
sprintf(daysbuf, "%d days(!), ", days);
}
Worried me initially, I thought something was wrong! :)




Comments
Anonymous
Wed, 16/07/2008 - 17:49
Permalink
I just found this myself and
I just found this myself and wondered what it was.
I even read through the htop help screen and then tried a couple of Google searches. I, too, thought that something was wrong for a second, but then I thought it was probably just an Easter Egg. Thanks for providing some hints on the code snippet responsible, though, that's put my mind at rest!
It was a production machine I found it on, and what I found more amusing was that after 112 days, htop has actually taken up more CPU time than the squid process that the server is built to run!
Anonymous
Fri, 18/07/2008 - 23:01
Permalink
Perhaps it is a genuine
Perhaps it is a genuine warning, letting you know that it's been an extraordinarily long time your servers been up. My box has been running now for just over a year and no bigger award than (!) has been provided :(
Anonymous
Mon, 22/09/2008 - 12:35
Permalink
Well, it's a warning or a
Well, it's a warning or a "Congratulations!", who knows...
Anyway, my server is robust and I'm happy ;-)
Anonymous
Wed, 01/07/2009 - 03:31
Permalink
Kudos! You guys found it :)
It's a "Congratulations" :)
We don't see too many Easter Eggs in Free Software nowadays, so I thought I would add one. I receive the odd email about it now and then, and it always brings a smile to my face. :)
Cheers!
-- Hisham, htop author
http://htop.sf.net
mig5
Wed, 01/07/2009 - 21:55
Permalink
Good news is always a good
Good news is always a good thing when you're checking your server diagnostics :)
Nice work! And I just passed 100 days uptime on this server itself. Good timing! :)
campassi
Wed, 23/06/2010 - 01:37
Permalink
I was wondering what was
I was wondering what was going on....! Thanks for the clarification, :-)
cFire
Tue, 29/06/2010 - 09:05
Permalink
How nice of it :D
How nice of it :D
triple J
Wed, 30/06/2010 - 05:31
Permalink
I would change the "if (days
I would change the "if (days > 100)" to "if ( ! (days % 100) )" to avoid receiving the message everyday once you're over 100.
Then every time you reached a new 100 step you'd get the message, but not in between.
Jared
Sat, 29/10/2011 - 04:56
Permalink
Higher value for uptime isn't
Higher value for uptime isn't necessary better. It's more of a reminder that you need to get your server up to date and this often requires a reboot to cleanly ensure the system is running on the latest software.
Add new comment