aboutsummaryrefslogtreecommitdiff
path: root/src/units.c
diff options
context:
space:
mode:
authorJon Dugan <jdugan@x1024.net>2009-02-24 09:43:27 +0000
committerJon Dugan <jdugan@x1024.net>2009-02-24 09:43:27 +0000
commitbc495fb9f7ff183cc944122075363c8adb662290 (patch)
treeee61851f5e56a1f5e517a5ec4efb3038c4967017 /src/units.c
parente92877004ee6e509a2ed32efa91f1bf88e989a78 (diff)
downloadiperf3-bc495fb9f7ff183cc944122075363c8adb662290.tar.gz
fix UNIT_LEN
tweak format in unit_snprintf
Diffstat (limited to 'src/units.c')
-rw-r--r--src/units.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/units.c b/src/units.c
index 7152796..777c655 100644
--- a/src/units.c
+++ b/src/units.c
@@ -242,7 +242,7 @@ void unit_snprintf( char *s, int inLen,
} else if ( inNum < 99.95 ) { /* 99.95 would be rounded to 100 */
format = "%4.1f %s"; /* ##.# */
} else if ( inNum < 999.5 ) { /* 999.5 would be rounded to 1000 */
- format = " %4.0f %s"; /* ### */
+ format = "%4.0f %s"; /* ### */
} else { /* 1000-1024 fits in 4 places
* If not using Adaptive sizes then
* this code will not control spaces*/