According with RFC 2330 ("Framework for IP Performance Metrics", from

Paxson et al, Status: Informational, May 1998), we should use "bits per
second" and "k" as 1000 not 1024 for throughput measures.

Submitted by:   Eduardo Souza Machado da Silva <esms@acm.org>
This commit is contained in:
Jordan K. Hubbard 2001-04-08 20:42:52 +00:00
parent 9a82806973
commit 021bcbceea
2 changed files with 2 additions and 2 deletions

View File

@ -761,7 +761,7 @@ distExtract(char *parent, Distribution *me)
if (seconds != last_msg) {
last_msg = seconds;
msgInfo("%10d bytes read from %s dist, chunk %2d of %2d @ %.1f KB/sec.",
total, dist, chunk + 1, numchunks, (total / seconds) / 1024.0);
total, dist, chunk + 1, numchunks, (total / seconds) / 1000.0);
}
}
fclose(fp);

View File

@ -207,7 +207,7 @@ package_extract(Device *dev, char *name, Boolean depended)
seconds = 1;
if (seconds != last_msg) {
last_msg = seconds;
msgInfo("%10d bytes read from package %s @ %4.1f KBytes/second", tot, name, (tot / seconds) / 1024.0);
msgInfo("%10d bytes read from package %s @ %4.1f KBytes/second", tot, name, (tot / seconds) / 1000.0);
}
/* Write it out */
if (sigpipe_caught || write(pfd[1], buf, i) != i) {