changeset 513:b918cb0263bf

fixed bug in SystemInfo imported from: moin--main--1.5--patch-517
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 26 Mar 2006 22:08:43 +0000
parents 3ede5fa7001a
children fc74944187ad
files ChangeLog MoinMoin/wikimacro.py
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 26 20:50:56 2006 +0000
+++ b/ChangeLog	Sun Mar 26 22:08:43 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-03-26 23:08:43 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-517
+
+    Summary:
+      fixed bug in SystemInfo
+    Revision:
+      moin--main--1.5--patch-517
+
+    fixed bug in SystemInfo
+    
+
+    modified files:
+     ChangeLog MoinMoin/wikimacro.py
+
+
 2006-03-26 21:50:56 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-516
 
     Summary:
--- a/MoinMoin/wikimacro.py	Sun Mar 26 20:50:56 2006 +0000
+++ b/MoinMoin/wikimacro.py	Sun Mar 26 22:08:43 2006 +0000
@@ -370,7 +370,7 @@
             try:
                 dirsize = 0
                 for root, dirs, files in os.walk(path):
-                    dirsize += sum(os.path.getsize(os.path.join(root, name)) for name in files)
+                    dirsize += sum([os.path.getsize(os.path.join(root, name)) for name in files])
             except EnvironmentError, e:
                 dirsize = -1
             return dirsize