Skip to content

Commit

Permalink
releaseb proper update time
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Jan 4, 2024
1 parent dce72e0 commit 726bdae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/github/sammers/pla/logic/Ladder.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ private Observable<Long> runDataUpdater(String region,
AtomicBoolean running,
Observable<Long> obs) {
return obs
.flatMapSingle(tick -> {
.flatMapSingle(obst -> {
if (running.compareAndSet(false, true)) {
long tick = System.nanoTime();
log.info("Starting data updater for region=" + region);
return threeVThree(region).ignoreElement()
.andThen(twoVTwo(region).ignoreElement())
Expand Down

0 comments on commit 726bdae

Please sign in to comment.