added cpu load information to status page

pull/1/head
orbiter 12 years ago
parent c6a6f159e8
commit aba7cc5de7

@ -32,6 +32,7 @@ import java.util.Date;
import net.yacy.cora.protocol.Domains; import net.yacy.cora.protocol.Domains;
import net.yacy.cora.protocol.RequestHeader; import net.yacy.cora.protocol.RequestHeader;
import net.yacy.cora.util.Memory;
import net.yacy.kelondro.io.ByteCount; import net.yacy.kelondro.io.ByteCount;
import net.yacy.kelondro.util.Formatter; import net.yacy.kelondro.util.Formatter;
import net.yacy.kelondro.util.MemoryControl; import net.yacy.kelondro.util.MemoryControl;
@ -317,6 +318,7 @@ public class Status
prop.put("totalMemory", Formatter.bytesToString(MemoryControl.total())); prop.put("totalMemory", Formatter.bytesToString(MemoryControl.total()));
prop.put("maxMemory", Formatter.bytesToString(MemoryControl.maxMemory())); prop.put("maxMemory", Formatter.bytesToString(MemoryControl.maxMemory()));
prop.put("processors", WorkflowProcessor.availableCPU); prop.put("processors", WorkflowProcessor.availableCPU);
prop.put("load", Memory.load());
// proxy traffic // proxy traffic
//prop.put("trafficIn",bytesToString(httpdByteCountInputStream.getGlobalCount())); //prop.put("trafficIn",bytesToString(httpdByteCountInputStream.getGlobalCount()));

@ -3,18 +3,17 @@
<legend>System Status</legend> <legend>System Status</legend>
<dl> <dl>
<dt>Process</dt> <dt>System</dt>
<dd>#[versionpp]# <dd>YaCy version #[versionpp]#
#(peerStatistics)# #(peerStatistics)#
Unknown Unknown
:: ::
<div>Uptime: #[uptime]#</div> <div>Uptime: #[uptime]#</div>
#(/peerStatistics)# #(/peerStatistics)#
</dd> <div>Processors: #[processors]#</div>
<div>Load: #[load]#</div>
<dt>System Resources</dt>
<dd>Processors: #[processors]#</dd>
</dd>
<dt>Protection</dt> <dt>Protection</dt>
<dd>#(protection)# <dd>#(protection)#
<strong>Password is missing.</strong> <strong>Password is missing.</strong>

Loading…
Cancel
Save