<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SudoSeth &#187; htop</title>
	<atom:link href="http://www.sudoseth.com/blog/tag/htop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sudoseth.com/blog</link>
	<description>Ideas, Videos, Projects, and More!</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Webserver: 103 Days of Uptime and Counting</title>
		<link>http://www.sudoseth.com/blog/2009/01/webserver-103-days-of-uptime-and-counting/</link>
		<comments>http://www.sudoseth.com/blog/2009/01/webserver-103-days-of-uptime-and-counting/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 04:00:25 +0000</pubDate>
		<dc:creator>Seth</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[This Site]]></category>
		<category><![CDATA[htop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://www.sudoseth.com/blog/?p=245</guid>
		<description><![CDATA[I missed the screenshot for the bigg one-oh-oh, but the above screenshot gets the point accross. I personally like the easter egg that htop shows when you reach the 100 days of uptime. Notice the (!) to the right of the uptime readout. This is one of the many reasons I love linux&#8230; The little [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sudoseth.com/static-pages/images/network/webserver2u-103days.png"><img class="alignnone" title="webserver2u-103-days-uptime" src="http://www.sudoseth.com/static-pages/images/network/webserver2u-103days.png" alt="" width="564" height="323" /></a></p>
<p>I missed the screenshot for the bigg one-oh-oh, but the above screenshot gets the point accross. I personally like the easter egg that htop shows when you reach the 100 days of uptime. Notice the (!) to the right of the uptime readout. This is one of the many reasons I love linux&#8230;<br />
<span id="more-245"></span><br />
The little bit of code that does this can be found in the source code of<a href="http://htop.svn.sourceforge.net/viewvc/htop/trunk/UptimeMeter.c?view=markup"> UptimeMeter.c</a> (as I learned from <a href="http://blog.beplacid.net/2009/01/14/why-does-htop-display-an-exclamation-mark-next-to-uptime/">atc</a>):</p>
<blockquote><p><code>35    char daysbuf[15];<br />
36    if (days &gt; 100) {<br />
37       sprintf(daysbuf, “%d days(!), “, days);<br />
38    } else if (days &gt; 1) {<br />
39       sprintf(daysbuf, “%d days, “, days);<br />
40    } else if (days == 1) {<br />
41       sprintf(daysbuf, “1 day, “);<br />
42    } else {<br />
43       daysbuf[0] = ‘\0′;<br />
44    }</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sudoseth.com/blog/2009/01/webserver-103-days-of-uptime-and-counting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

