Fixed bug in idletime return value