do_splay

in chefctl/src/chefctl.rb [900:923]


    def do_splay
      return unless Chefctl::Config.splay > 0

      t = rand(Chefctl::Config.splay)
      Chefctl.logger.info("splay: sleeping for #{t} seconds.")
      begin
        Chefctl.log_file.fsync
      rescue NotImplementedError
        Chefctl.logger.warn('No fsync support, splay message was delayed')
      end

      
      
      
      endtime = Time.now + t
      loop do
        if Time.now >= endtime
          return
        else
          sleep 1
        end
      end
    end