From: Brian Warner <warner@allmydata.com>
Date: Tue, 15 Apr 2008 18:20:04 +0000 (-0700)
Subject: web/statistics: fix typo that make immutable-download stats missing
X-Git-Url: https://git.rkrishnan.org/simplejson/module-simplejson.decoder.html?a=commitdiff_plain;h=b5d19456f40f39abc07716659d16d9a841f45940;p=tahoe-lafs%2Ftahoe-lafs.git

web/statistics: fix typo that make immutable-download stats missing
---

diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py
index 917c265f..06e9f010 100644
--- a/src/allmydata/web/status.py
+++ b/src/allmydata/web/status.py
@@ -847,8 +847,8 @@ class Statistics(rend.Page):
                 (files, bytes, abbreviate_size(bytes)))
 
     def render_downloads(self, ctx, data):
-        files = data["counters"].get("downloader.files_uploaded")
-        bytes = data["counters"].get("downloader.bytes_uploaded")
+        files = data["counters"].get("downloader.files_downloaded")
+        bytes = data["counters"].get("downloader.bytes_downloaded")
         return ("%s files / %s bytes (%s)" %
                 (files, bytes, abbreviate_size(bytes)))