Skip to content

Commit

Permalink
Increase the default delays.
Browse files Browse the repository at this point in the history
A longer client delay is needed when many metrics are fetched simultaneously.
  • Loading branch information
mbostock committed Apr 3, 2012
1 parent 17c0fa3 commit 4bb8b60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cubism.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ cubism.context = function() {
size = 1440, // four hours at ten seconds, in pixels
start0, stop0, // the start and stop for the previous change event
start1, stop1, // the start and stop for the next beforechange event
serverDelay = 4000,
clientDelay = 1000,
serverDelay = 5e3,
clientDelay = 5e3,
event = d3.dispatch("beforechange", "change"),
scale = context.scale = d3.time.scale().range([0, size]);

Expand Down
2 changes: 1 addition & 1 deletion cubism.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ cubism.context = function() {
size = 1440, // four hours at ten seconds, in pixels
start0, stop0, // the start and stop for the previous change event
start1, stop1, // the start and stop for the next beforechange event
serverDelay = 4000,
clientDelay = 1000,
serverDelay = 5e3,
clientDelay = 5e3,
event = d3.dispatch("beforechange", "change"),
scale = context.scale = d3.time.scale().range([0, size]);

Expand Down

0 comments on commit 4bb8b60

Please sign in to comment.