diff options
author | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-03-23 14:48:23 +0000 |
---|---|---|
committer | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-03-23 14:48:23 +0000 |
commit | 995d947e8e62261052e00fb5d5748cd66ed68f1b (patch) | |
tree | 20d491827da84d2f4f62423315b5995f4ec70f84 /usr.bin/systat/sensors.c | |
parent | 31a0b6608c058390a7ca05f87d6a1e4a9e04b989 (diff) |
use the proper abbreviation for second: "s"
requested by deanna, naddy, otto, steven
ok deanna, otto
Diffstat (limited to 'usr.bin/systat/sensors.c')
-rw-r--r-- | usr.bin/systat/sensors.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c index d4aa6872503..1394cb31c68 100644 --- a/usr.bin/systat/sensors.c +++ b/usr.bin/systat/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.10 2007/03/23 06:56:40 ckuethe Exp $ */ +/* $OpenBSD: sensors.c,v 1.11 2007/03/23 14:48:22 ckuethe Exp $ */ /* * Copyright (c) 2007 Deanna Phillips <deanna@openbsd.org> @@ -233,21 +233,21 @@ fmttime(double in) unit = "min"; in /= SECS_PER_MIN; } else if (in >= 1 ){ - unit = "sec"; + unit = "s"; /* in *= 1; */ /* no op */ } else if (in == 0 ){ /* direct comparisons to floats are scary */ - unit = "sec"; + unit = "s"; } else if (in >= 1e-3 ){ - unit = "mS"; + unit = "ms"; in *= 1e3; } else if (in >= 1e-6 ){ - unit = "uS"; + unit = "us"; in *= 1e6; } else if (in >= 1e-9 ){ - unit = "nS"; + unit = "ns"; in *= 1e9; } else { - unit = "pS"; + unit = "ps"; if (in < 1e-13) tiny = 1; in *= 1e12; |