MemoryUsageView.st
changeset 14692 fa121a4da2ad
parent 13757 47fb1a909b93
child 14921 eb71540a0256
--- a/MemoryUsageView.st	Fri Aug 01 16:15:42 2014 +0200
+++ b/MemoryUsageView.st	Fri Aug 01 17:19:19 2014 +0200
@@ -877,7 +877,10 @@
         ].
 "/ (((lastP asFixedPoint:1) printStringLeftPaddedTo:7) startsWith:'99.') ifTrue:[self halt].
         "add summary line"
-        overAllAvgSize := ((allMemory / overAllCount) * 10) rounded / 10.0.
+        overAllAvgSize := 0.
+        overAllCount == 0 ifFalse:[
+            overAllAvgSize := ((allMemory / overAllCount) * 10) rounded / 10.0.
+        ].
 
         l addFirst:''.
         line := 'all objects' printStringPaddedTo:nameLen.
@@ -1110,10 +1113,10 @@
 !MemoryUsageView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/MemoryUsageView.st,v 1.66 2014-01-13 13:31:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/MemoryUsageView.st,v 1.67 2014-08-01 15:19:19 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/MemoryUsageView.st,v 1.66 2014-01-13 13:31:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/MemoryUsageView.st,v 1.67 2014-08-01 15:19:19 cg Exp $'
 ! !