Permalink
Browse files

Minor update to geofence refresh logic

  • Loading branch information...
richturner committed Nov 6, 2018
1 parent 87f309b commit 6a55ba055ced9489eeba75cd1af3c47d16dc63b6
@@ -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 = 1 + ids.size() / 10;
int rows = Math.round((((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 6a55ba0

Please sign in to comment.