Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Only update every 10 seconds
Browse files Browse the repository at this point in the history
Saves some load without much degradation
  • Loading branch information
Philip Wills committed Jun 22, 2012
1 parent 0756dac commit b06b9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/Backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object Backend {
private val calculator = new Calculator()

def start() {
system.scheduler.schedule(5 seconds, 5 seconds) { calculator.calculate() }
system.scheduler.schedule(10 seconds, 10 seconds) { calculator.calculate() }
system.scheduler.schedule(5 seconds, 30 seconds) { latestContent.refresh() }
system.scheduler.schedule(1 seconds, 20 seconds) { ukFrontLinkTracker.refresh() }
system.scheduler.schedule(20 seconds, 60 seconds) { usFrontLinkTracker.refresh() }
Expand Down

0 comments on commit b06b9ad

Please sign in to comment.