bad print in hdparm.c

Mikhail Gusarov dottedmag at dottedmag.net
Wed May 20 08:53:00 UTC 2009


Twas brillig at 04:51:29 20.05.2009 UTC-04 when vapier at gentoo.org did gyre and gimble:

 >> >printf("%u minutes %u seconds", standby / 12, (standby*5) % 60);
 >> <printf("%u minutes %u seconds", standby / 12, standby % 12);

 MF> better to write it as (60 / 5) so people dont get confused as to
 MF> where this magic 12 is coming from

why not standby / (60 / 5) then? :)

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090520/643c57b4/attachment.pgp>


More information about the busybox mailing list