Я хочу найти среднее ежедневное количество времени, которое я провожу за компьютером.
Если мой дисплей выключен, я не использую свой компьютер. Если горит, то я. (Это достаточно хорошее предположение для моих целей).
Используя pmset
, я могу видеть эту информацию, но только пару дней:
pmset -g log | grep "Display is turned on"
:
2016-03-12 11:19:08 -0500 Notification Display is turned on
2016-03-12 12:47:41 -0500 Notification Display is turned on
2016-03-12 16:00:11 -0500 Notification Display is turned on
2016-03-12 17:47:43 -0500 Notification Display is turned on
2016-03-12 18:56:27 -0500 Notification Display is turned on
2016-03-12 19:47:26 -0500 Notification Display is turned on
2016-03-12 20:34:56 -0500 Notification Display is turned on
2016-03-12 21:20:48 -0500 Notification Display is turned on
2016-03-12 23:08:32 -0500 Notification Display is turned on
2016-03-13 10:59:28 -0400 Notification Display is turned on
2016-03-13 11:39:30 -0400 Notification Display is turned on
2016-03-13 12:56:20 -0400 Notification Display is turned on
2016-03-13 13:27:17 -0400 Notification Display is turned on
2016-03-13 16:18:58 -0400 Notification Display is turned on
2016-03-13 16:23:40 -0400 Notification Display is turned on
2016-03-13 16:35:28 -0400 Notification Display is turned on
2016-03-13 16:59:29 -0400 Notification Display is turned on
pmset -g log | grep "Display is turned off"
:
2016-03-12 01:46:21 -0500 Notification Display is turned off
2016-03-12 12:46:55 -0500 Notification Display is turned off
2016-03-12 12:54:29 -0500 Notification Display is turned off
2016-03-12 17:28:31 -0500 Notification Display is turned off
2016-03-12 18:01:29 -0500 Notification Display is turned off
2016-03-12 19:20:19 -0500 Notification Display is turned off
2016-03-12 19:47:31 -0500 Notification Display is turned off
2016-03-12 21:11:52 -0500 Notification Display is turned off
2016-03-12 22:19:23 -0500 Notification Display is turned off
2016-03-13 01:07:07 -0500 Notification Display is turned off
2016-03-13 11:15:46 -0400 Notification Display is turned off
2016-03-13 12:55:57 -0400 Notification Display is turned off
2016-03-13 13:09:03 -0400 Notification Display is turned off
2016-03-13 15:25:05 -0400 Notification Display is turned off
2016-03-13 16:23:37 -0400 Notification Display is turned off
2016-03-13 16:35:25 -0400 Notification Display is turned off
2016-03-13 16:59:28 -0400 Notification Display is turned off
Мне нужны данные как минимум за 30 дней, чтобы получить достоверное среднее значение. История журнала pmset
восходит так далеко? Есть ли более простой способ получить нужные мне данные? Если да, то как?