Commit 1dc29d44 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Tweaks to traffic stat.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4085 b35dd754-fafc-0310-a699-88a17e54d16e
parent 154d925f
......@@ -1872,8 +1872,8 @@ plugin.available.download=Download and Install
# Server bytes statistics
server_bytes.stats.incoming.name=Server Traffic
server_bytes.stats.incoming.description=Rate of incoming bytes
server_bytes.stats.incoming.label=Incoming Bytes
server_bytes.stats.incoming.description=Kb of traffic per minute
server_bytes.stats.incoming.label=Kb of traffic per minute
server_bytes.stats.outgoing.name=Server Traffic
server_bytes.stats.outgoing.description=Rate of outgoing bytes
server_bytes.stats.outgoing.label=Outgoing Bytes
server_bytes.stats.outgoing.description=Kb of traffic per minute
server_bytes.stats.outgoing.label=Kb of traffic per minute
......@@ -115,7 +115,8 @@ public class ServerTrafficCounter {
}
public double sample() {
return incomingCounter.getAndSet(0);
// Divide result by 1024 so that we return the result in Kb.
return incomingCounter.getAndSet(0)/1024;
}
};
StatisticsManager.getInstance()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment