summary refs log tree commit diff
path: root/cli
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-09-16 10:50:00 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-09-16 10:50:00 +0000
commitb169d038fe2d3cc01979dd8ed6333504bbcd02f9 (patch)
tree1e091a0eaae278ad6f21e3fc2e026ebcd5328050 /cli
parentb0d013a7aa9e7f58547a2be56400c7f9d34edec2 (diff)
downloadbtpd-b169d038fe2d3cc01979dd8ed6333504bbcd02f9.tar.gz
btpd-b169d038fe2d3cc01979dd8ed6333504bbcd02f9.zip
Return rates in bytes/s instead of time factor * bytes/s. Clients should
not need to know about the sample time.

Diffstat (limited to 'cli')
-rw-r--r--cli/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/stat.c b/cli/stat.c
index 96f85c7..0ed75bf 100644
--- a/cli/stat.c
+++ b/cli/stat.c
@@ -88,9 +88,9 @@ print_stat(struct btstat *st)
 {
     print_percent(st->content_got, st->content_size);
     print_size(st->downloaded);
-    print_rate(st->rate_down / 20);
+    print_rate(st->rate_down);
     print_size(st->uploaded);
-    print_rate(st->rate_up / 20);
+    print_rate(st->rate_up);
     printf("%5u ", st->peers);
     print_percent(st->pieces_seen, st->torrent_pieces);
     if (st->tr_errors > 0)