diff options
author | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-10-30 05:16:35 -0400 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-10-30 05:16:35 -0400 |
commit | a4a4564f760bb1bcd541366186cd46488d5a569b (patch) | |
tree | 3737ae6d233464482482880bd858665866686f10 /templates/project/jobs/buzzwords.rb | |
parent | 3a77d19282f2055559c63468c574b824138464ac (diff) |
Added new widgets, and made them more flexible. Ready for 0.1.3!
Diffstat (limited to 'templates/project/jobs/buzzwords.rb')
-rw-r--r-- | templates/project/jobs/buzzwords.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/project/jobs/buzzwords.rb b/templates/project/jobs/buzzwords.rb index 109dc60..2668d5a 100644 --- a/templates/project/jobs/buzzwords.rb +++ b/templates/project/jobs/buzzwords.rb @@ -3,7 +3,7 @@ buzzword_counts = Hash.new({ value: 0 }) SCHEDULER.every '2s' do random_buzzword = buzzwords.sample - buzzword_counts[random_buzzword] = { label: random_buzzword, value: buzzword_counts[random_buzzword][:value] + 1 } + buzzword_counts[random_buzzword] = { label: random_buzzword, value: (buzzword_counts[random_buzzword][:value] + 1) % 30 } send_event('buzzwords', { items: buzzword_counts.values }) end
\ No newline at end of file |