I keep getting the exclamation mark in htop next to the uptime and always wondered why it’s there. According to this mailing list post it’s a little easter egg in UptimeMeter.c:
35 char daysbuf[15];
36 if (days > 100) {
37 sprintf(daysbuf, "%d days(!), ", days);
38 } else if (days > 1) {
39 sprintf(daysbuf, "%d days, ", days);
40 } else if (days == 1) {
41 sprintf(daysbuf, "1 day, ");
42 } else {
43 daysbuf[0] = '\0';
44 }
-
« Home
Pages
Categories
Archives
- March 2010
- January 2010
- December 2009
- October 2009
- September 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- September 2008
- July 2008
- June 2008
- March 2008
- February 2008
- January 2008
- November 2007
- September 2007
- August 2007
- June 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Blogroll
Games
GNU/Linux
Inspiration
Life
Web Design
One Trackback/Pingback
[...] bit of code that does this can be found in the source code of UptimeMeter.c (as I learned from atc): 35 char daysbuf[15]; 36 if (days > 100) { 37 sprintf(daysbuf, “%d days(!), “, days); 38 } [...]
Post a Comment