tal on-error fix
[mir.git] / source / mircoders / global / MirGlobal.java
index b4599fd..5856cdd 100755 (executable)
@@ -50,7 +50,6 @@ import mircoders.localizer.MirCachingLocalizerDecorator;
 import mircoders.localizer.MirLocalizer;\r
 \r
 public class MirGlobal {\r
-  static private MirPropertiesConfiguration configuration;\r
   static private MirLocalizer localizer;\r
   static private ProducerEngine producerEngine;\r
   static private Abuse abuse;\r
@@ -91,12 +90,14 @@ public class MirGlobal {
     return localizer;\r
   }\r
 \r
+  /**\r
+   * Returns a string that provides some global status information\r
+   */\r
   public static String getStatus() {\r
     StringBuffer result = new StringBuffer();\r
 \r
-    System.gc();\r
-    result.append(Runtime.getRuntime().freeMemory()).append("/");\r
-    result.append(Runtime.getRuntime().freeMemory()).append(" free memory | ");\r
+    result.append((Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory())/(1024*1024));\r
+    result.append("M in use, ");\r
     result.append(Thread.currentThread().activeCount()).append(" active threads");\r
 \r
     return result.toString();\r