Skip to content
Browse files

Use Cube example defaults.

  • Loading branch information...
1 parent 0ff21e3 commit f54f1ddeeb46f499734b20773bee8128f5031e05 @dzello dzello committed Jun 29, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 examples/random-emitter/random-config.js
  2. +1 −1 examples/random-emitter/random-emitter.js
View
6 examples/random-emitter/random-config.js
@@ -7,9 +7,9 @@ module.exports = {
// For example, if the offset is minus four hours, then the first event that
// the random emitter sends will be four hours old. It will then generate more
// recent events based on the step interval, all the way up to the duration.
- "offset": -2 * 60 * 60 * 1000,
- "duration": 2 * 60 * 60 * 1000,
+ "offset": -4 * 60 * 60 * 1000,
+ "duration": 8 * 60 * 60 * 1000,
// The time between random events.
- "step": 10 * 10
+ "step": 1000 * 10
};
View
2 examples/random-emitter/random-emitter.js
@@ -15,7 +15,7 @@ var start = Date.now() + options["offset"],
while (start < stop) {
emitter.send({
- type: "signup",
+ type: "random",
time: new Date(start),
data: {
value: value += Math.random() - .5

0 comments on commit f54f1dd

Please sign in to comment.
Something went wrong with that request. Please try again.