Jesús Gabriel y Galán wrote:

> I realized that there was a case I wasn't taking into account: a machine 
> booted
> less than 1 hour ago.

And I missed the case of an uptime between 24 and 25 hours. (On OSX, at 
least). Which makes my solution fail quite badly in that time bracket.
-- 
Posted via http://www.ruby-forum.com/.