From 51b59b12191f47175d30066e92de163059890826 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Wed, 26 Sep 2007 15:00:59 -0700
Subject: [PATCH] dump-share: clarify the label on the size of the original
 file

---
 src/allmydata/scripts/debug.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/allmydata/scripts/debug.py b/src/allmydata/scripts/debug.py
index 15b810c1..63b212ff 100644
--- a/src/allmydata/scripts/debug.py
+++ b/src/allmydata/scripts/debug.py
@@ -61,17 +61,21 @@ def dump_share(config, out=sys.stdout, err=sys.stderr):
     keys3 = ("plaintext_hash", "plaintext_root_hash",
              "crypttext_hash", "crypttext_root_hash",
              "share_root_hash")
+    display_keys = {"size": "file_size"}
     for k in keys1:
         if k in unpacked:
-            print >>out, "%19s: %s" % (k, unpacked[k])
+            dk = display_keys.get(k, k)
+            print >>out, "%19s: %s" % (dk, unpacked[k])
     print >>out
     for k in keys2:
         if k in unpacked:
-            print >>out, "%19s: %s" % (k, unpacked[k])
+            dk = display_keys.get(k, k)
+            print >>out, "%19s: %s" % (dk, unpacked[k])
     print >>out
     for k in keys3:
         if k in unpacked:
-            print >>out, "%19s: %s" % (k, unpacked[k])
+            dk = display_keys.get(k, k)
+            print >>out, "%19s: %s" % (dk, unpacked[k])
 
     leftover = set(unpacked.keys()) - set(keys1 + keys2 + keys3)
     if leftover:
-- 
2.45.2