puppetlabs/puppet — pull request #658 by pcarlisle (2012-04-11 21:34:28+00:00)
Title: Ticket/2.7.x/13640 daemon infinite loop

The new event_loop code in daemon was adjusting the run time based on
next_agent_run even when not running an agent. This caused the interval to
always be 0 and peg CPU usage at 100%. We should only make this adjustment if
there is an agent running.