diff options
| author | Luke Kanies <luke@madstop.com> | 2008-11-28 23:58:04 -0600 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-12-01 12:55:44 +1100 |
| commit | 0171e25ec457e9e9d078aabbea491bbcd03448bf (patch) | |
| tree | 293ae4ad1fd4750ef704b9f2a685471c93d909c5 /lib/puppet | |
| parent | 607958cb7fe178596930b1506b69807dc78d111b (diff) | |
| download | puppet-0171e25ec457e9e9d078aabbea491bbcd03448bf.tar.gz puppet-0171e25ec457e9e9d078aabbea491bbcd03448bf.tar.xz puppet-0171e25ec457e9e9d078aabbea491bbcd03448bf.zip | |
Fixing #1749 - Splay now hopefully behaves "better" for small values.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/network/client/master.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index 5e9422b7e..073d2e229 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -488,7 +488,7 @@ class Puppet::Network::Client::Master < Puppet::Network::Client return unless Puppet[:splay] return if splayed? - time = rand(Integer(Puppet[:splaylimit])) + time = rand(Integer(Puppet[:splaylimit] + 1)) Puppet.info "Sleeping for %s seconds (splay is enabled)" % time sleep(time) @splayed = true |
