use nicer output messages

This commit is contained in:
Stefan Lankes 2011-10-07 01:48:03 -07:00
parent 0801b6f087
commit b920e37f77

View file

@ -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");
}