diff options
author | 2007-03-23 14:48:22 +0000 | |
---|---|---|
committer | 2007-03-23 14:48:22 +0000 | |
commit | cfc2f9766aae094a162a2069cd6bf87f8f94ce5d (patch) | |
tree | eec25df52eb3aeb23f371a3ec4d6e36862ac3ecb | |
parent | add Origin AE X15e HTPC case with 7" LCD (diff) | |
download | wireguard-openbsd-cfc2f9766aae094a162a2069cd6bf87f8f94ce5d.tar.xz wireguard-openbsd-cfc2f9766aae094a162a2069cd6bf87f8f94ce5d.zip |
use the proper abbreviation for second: "s"
requested by deanna, naddy, otto, steven
ok deanna, otto
-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; |