print('unknown platform', sys.platform)
sys.exit(1)
-cur_state = State();
+cur_state = State()
print("Time,Idle")
while True:
- time.sleep(1);
- next_state = State();
+ time.sleep(1)
+ next_state = State()
now = datetime.datetime.utcnow().isoformat()
idle = next_state.idle_since(cur_state)
print("%s,%s" % (now, idle))