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

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!

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 :(

Well, it's a warning or a "Congratulations!", who knows...

Anyway, my server is robust and I'm happy ;-)

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

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! :)

I was wondering what was going on....! Thanks for the clarification, :-)

How nice of it :D

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.

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