commit | c7518832d458b778a6a4a52d8c6ca2fc67f6fe02 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon13@gmail.com> | Thu Jan 16 10:50:04 2014 -0800 |
committer | Brian O'Connor <bocon13@gmail.com> | Thu Jan 16 10:50:04 2014 -0800 |
tree | 3d0b706e1a5a5b224680a4d16da54aaca0226025 | |
parent | a5e5f836f9259f62d705174b851133d82aa872cd [diff] |
fixing overflow error in PerformanceMonitor
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PerformanceMonitor.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PerformanceMonitor.java index 6acf825..9e23555 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PerformanceMonitor.java +++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PerformanceMonitor.java
@@ -89,7 +89,7 @@ for(Entry<String, Queue<Measurement>> e : map.entrySet()) { String key = e.getKey(); Queue<Measurement> list = e.getValue(); - int total = 0, count = 0; + long total = 0, count = 0; long start = Long.MAX_VALUE, stop = -1; for(Measurement m : list) { if(m.stop < 0) {