Used the correct function to compute the idle state time when reviving.

No need to reinvent the wheel, eh. :)