gsd 10 months ago
parent
commit
da42b5e9e9
  1. 2
      src/main/java/app/updates/OnlineUpdater.java

2
src/main/java/app/updates/OnlineUpdater.java

@ -62,7 +62,7 @@ public class OnlineUpdater extends BaseUpdater {
public long getDifferentReplica() {
Long rw = jdbcTemplate.query("SELECT COUNT(*) FROM `servers_online`", (rs, n) -> rs.getLong(1)).get(0);
Long ro = jdbcTemplate.query("SELECT COUNT(*) FROM `servers_online`", (rs, n) -> rs.getLong(1)).get(0);
Long ro = jdbcTemplate_ro.query("SELECT COUNT(*) FROM `servers_online`", (rs, n) -> rs.getLong(1)).get(0);
return Math.abs(rw - ro);
}

Loading…
Cancel
Save