From b920e37f77591de7748994306f58b5ac9bd9d320 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Fri, 7 Oct 2011 01:48:03 -0700 Subject: [PATCH] use nicer output messages --- apps/netio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/netio.c b/apps/netio.c index 5cedb691..4469cd1a 100644 --- a/apps/netio.c +++ b/apps/netio.c @@ -372,7 +372,7 @@ int TCP_Bench(void) end = rdtsc(); } while((end-start)/freq < 6000000ULL /* = 6s */); - kprintf("%llu KBytes/s", (nData/1024ULL)/((end-start)/(1000000ULL*freq))); + kprintf("%llu/100 MBytes/s", ((100ULL*nData)/(1024ULL*1024ULL))/((end-start)/(1000000ULL*freq))); kprintf(" Tx, "); @@ -416,7 +416,7 @@ int TCP_Bench(void) } while (cBuffer[0] == 0 && rc > 0); end = rdtsc(); - kprintf("%llu KBytes/s", (nData/1024ULL)/((end-start)/(1000000ULL*freq))); + kprintf("%llu/100 MBytes/s", ((100ULL*nData)/(1024ULL*1024ULL))/((end-start)/(1000000ULL*freq))); kprintf(" Rx.\n"); }