Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

correct value @ low memory warning see: http://forum.yacy-websuche.de/viewtopic.php?f=5&t=3317

sixcoolere131bf804d67
diff --git a/htroot/Status.java b/htroot/Status.java
index 9474c791b..0d43eade5 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -143,7 +143,7 @@ public class Status {
prop.put("warningDiskSpaceLow_minSpace", minFree);
}
if (!sb.observer.getMemoryAvailable()){
- final String minFree = Formatter.bytesToString(sb.observer.getMinFreeMemory() * 1024L);
+ final String minFree = Formatter.bytesToString(sb.observer.getMinFreeMemory() * 1024L * 1024L);
prop.put("warningMemoryLow", "1");
prop.put("warningMemoryLow_minSpace", minFree);
}