=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/sensors.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/systat/sensors.c 2007/03/23 06:56:40 1.10 --- src/usr.bin/systat/sensors.c 2007/03/23 14:48:22 1.11 *************** *** 1,4 **** ! /* $OpenBSD: sensors.c,v 1.10 2007/03/23 06:56:40 ckuethe Exp $ */ /* * Copyright (c) 2007 Deanna Phillips --- 1,4 ---- ! /* $OpenBSD: sensors.c,v 1.11 2007/03/23 14:48:22 ckuethe Exp $ */ /* * Copyright (c) 2007 Deanna Phillips *************** *** 233,253 **** unit = "min"; in /= SECS_PER_MIN; } else if (in >= 1 ){ ! unit = "sec"; /* in *= 1; */ /* no op */ } else if (in == 0 ){ /* direct comparisons to floats are scary */ ! unit = "sec"; } else if (in >= 1e-3 ){ ! unit = "mS"; in *= 1e3; } else if (in >= 1e-6 ){ ! unit = "uS"; in *= 1e6; } else if (in >= 1e-9 ){ ! unit = "nS"; in *= 1e9; } else { ! unit = "pS"; if (in < 1e-13) tiny = 1; in *= 1e12; --- 233,253 ---- unit = "min"; in /= SECS_PER_MIN; } else if (in >= 1 ){ ! unit = "s"; /* in *= 1; */ /* no op */ } else if (in == 0 ){ /* direct comparisons to floats are scary */ ! unit = "s"; } else if (in >= 1e-3 ){ ! unit = "ms"; in *= 1e3; } else if (in >= 1e-6 ){ ! unit = "us"; in *= 1e6; } else if (in >= 1e-9 ){ ! unit = "ns"; in *= 1e9; } else { ! unit = "ps"; if (in < 1e-13) tiny = 1; in *= 1e12;