Commit e47bef98 authored by God Ly's avatar God Ly Committed by it2000

return values fixed (double instead of Math.round(double))

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11683 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9907cf12
...@@ -374,7 +374,7 @@ public class ProxyConnectionManager { ...@@ -374,7 +374,7 @@ public class ProxyConnectionManager {
} }
public double sample() { public double sample() {
return (ProxyOutputStream.amountTransfered.getAndSet(0) / 1000); return (ProxyOutputStream.amountTransfered.getAndSet(0) / 1000d);
} }
public boolean isPartialSample() { public boolean isPartialSample() {
......
...@@ -143,7 +143,7 @@ public class ServerTrafficCounter { ...@@ -143,7 +143,7 @@ public class ServerTrafficCounter {
public double sample() { public double sample() {
// Divide result by 1024 so that we return the result in Kb. // Divide result by 1024 so that we return the result in Kb.
return incomingCounter.getAndSet(0)/1024; return incomingCounter.getAndSet(0)/1024d;
} }
public boolean isPartialSample() { public boolean isPartialSample() {
...@@ -174,7 +174,7 @@ public class ServerTrafficCounter { ...@@ -174,7 +174,7 @@ public class ServerTrafficCounter {
} }
public double sample() { public double sample() {
return outgoingCounter.getAndSet(0)/1024; return outgoingCounter.getAndSet(0)/1024d;
} }
public boolean isPartialSample() { public boolean isPartialSample() {
......
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