Permalink
Browse files

Bug fix for geofence refresh logic

  • Loading branch information...
richturner committed Nov 14, 2018
1 parent 2144dc2 commit d5990cd33cb744b1891e875f0c892fd60a2ebc30
@@ -267,7 +267,7 @@ protected void notifyAssetGeofencesChanged(Set<String> assetIds) {
data.put("action", "GEOFENCE_REFRESH");
// Break into batches of 10 sent every 10s to avoid consoles bombarding the backend
int rows = Math.round((((float)ids.size()) / 10));
int rows = (int)Math.ceil((((float)ids.size()) / 10));
IntStream.range(0, rows)
.forEach(i -> {
final List<String> subIds = ids.subList(10 * i, Math.min(10 + (10 * i), ids.size()));

0 comments on commit d5990cd

Please sign in to comment.