File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/swim/tutorial Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public class UnitAgent extends AbstractAgent {
63
63
64
64
// calculating overall mean to send to average lane
65
65
countSum += n .get ("count" ).longValue ();
66
- countTotal ++;
66
+ countTotal ++;
67
67
final long setAvg = countSum / countTotal ;
68
68
avg .set (setAvg );
69
69
@@ -72,7 +72,7 @@ public class UnitAgent extends AbstractAgent {
72
72
index = 0 ;
73
73
}
74
74
recentData [index ] = n .get ("count" ).longValue ();
75
- index ++;
75
+ index ++;
76
76
77
77
// calculating local mean to send to local average lane
78
78
long localSum = 0 ;
@@ -104,7 +104,7 @@ public class UnitAgent extends AbstractAgent {
104
104
105
105
// remove logic for avg lane
106
106
countSum -= o .get ("count" ).longValue () ;
107
- countTotal --;
107
+ countTotal --;
108
108
final long setUpdatedAvg = countSum / countTotal ;
109
109
avg .set (setUpdatedAvg );
110
110
You can’t perform that action at this time.
0 commit comments