...
|
...
|
@@ -235,7 +235,7 @@ public class OneJob implements Callable { |
|
|
|
|
|
String cmdSetRate = "0.00";
|
|
|
|
|
|
String hitRate = "0.00";
|
|
|
String hitRate = "100";
|
|
|
|
|
|
if (memcacheModel.getUpTime() > lastMemcachModel.getUpTime()) {
|
|
|
|
...
|
...
|
@@ -249,10 +249,11 @@ public class OneJob implements Callable { |
|
|
|
|
|
memcacheView.setCmdSet(cmdSetRate);
|
|
|
|
|
|
if (memcacheModel.getCmdGetHitCount() != memcacheModel.getCmdGetCount() && 0 != memcacheModel.getCmdGetCount()) {
|
|
|
hitRate = String.valueOf(memcacheModel.getCmdGetHitCount() * 100 / memcacheModel.getCmdGetCount());
|
|
|
}
|
|
|
|
|
|
hitRate = decimalFormat.format(memcacheModel.getCmdGetHitCount() * 1.00d / memcacheModel.getCmdGetCount());
|
|
|
|
|
|
memcacheView.setHitRate(hitRate);
|
|
|
memcacheView.setHitRate(hitRate + "%");
|
|
|
|
|
|
memcacheView.setUrl(this.url);
|
|
|
|
...
|
...
|
|