theproductiveprogrammer / tagtime-ui

The Display/User Interface code for TagTime
1 stars 1 forks source link

Show details about ping history #11

Open dreeves opened 6 years ago

dreeves commented 6 years ago

If you tail the output of the Perl TagTime daemon you see something like the following. I find it both reassuring and helpful. You see things like how many pings have pung, the average empirical gap between pings, how long TagTime has been running in total, and the exact times of all the pings.

Seeing the average empirical gap may be especially reassuring to newbies who are often skeptical when there's a long ping drought or a bunch of pings in a row. Something like this would reassure them that the average indeed converges steadily to 45 minutes.

And even for me after over a decade of TagTiming, I find it helpful to look at this and refine my intuitive sense of how often, say, 2+ hour gaps happen.

 951: PING! gap 02h08:31s  avg 45:59s tot 30d08h57:32s [28 03:41:11 TUE]
 952: PING! gap 41:03s  avg 45:59s tot 30d09h38:34s [08.28 04:22:14 TUE]
 953: PING! gap 01h01:20s  avg 46:00s tot 30d10h39:55s [28 05:23:34 TUE]
 954: PING! gap 26:54s  avg 45:58s tot 30d11h06:48s [08.28 05:50:28 TUE]
 955: PING! gap 25:59s  avg 45:57s tot 30d11h32:48s [08.28 06:16:27 TUE]
 956: PING! gap 31:31s  avg 45:56s tot 30d12h04:18s [08.28 06:47:58 TUE]
 957: PING! gap 04:42s  avg 45:54s tot 30d12h09:01s [08.28 06:52:40 TUE]
 958: PING! gap 25:08s  avg 45:52s tot 30d12h34:09s [08.28 07:17:48 TUE]
 959: PING! gap 49:29s  avg 45:53s tot 30d13h23:37s [08.28 08:07:17 TUE]
 960: PING! gap 44:25s  avg 45:53s tot 30d14h08:03s [08.28 08:51:42 TUE]
 961: PING! gap 10:21s  avg 45:50s tot 30d14h18:23s [08.28 09:02:03 TUE]
 962: PING! gap 07:34s  avg 45:48s tot 30d14h25:57s [08.28 09:09:37 TUE]
 963: PING! gap 36s  avg 45:45s tot 30d14h26:33s    [08.28 09:10:13 TUE]
 964: PING! gap 54:10s  avg 45:46s tot 30d15h20:44s [08.28 10:04:23 TUE]
 965: PING! gap 01h49:29s  avg 45:50s tot 30d17h10:13s [28 11:53:52 TUE]
 966: PING! gap 49:20s  avg 45:50s tot 30d17h59:33s [08.28 12:43:12 TUE]
 967: PING! gap 56:45s  avg 45:50s tot 30d18h56:17s [08.28 13:39:57 TUE]
 968: PING! gap 30:47s  avg 45:50s tot 30d19h27:04s [08.28 14:10:44 TUE]
 969: PING! gap 25:40s  avg 45:48s tot 30d19h52:44s [08.28 14:36:24 TUE]
 970: PING! gap 07:03s  avg 45:46s tot 30d19h59:47s [08.28 14:43:27 TUE]
 971: PING! gap 10:35s  avg 45:44s tot 30d20h10:23s [08.28 14:54:02 TUE]
 972: PING! gap 01h11:09s  avg 45:45s tot 30d21h21:31s [28 16:05:11 TUE]
 973: PING! gap 01h14:43s  avg 45:47s tot 30d22h36:14s [28 17:19:54 TUE]
 974: PING! gap 02h02:06s  avg 45:52s tot 31d00h38:21s [28 19:22:00 TUE]
 975: PING! gap 28:55s  avg 45:51s tot 31d01h07:16s [08.28 19:50:55 TUE]
 976: PING! gap 02h42:11s  avg 45:58s tot 31d03h49:26s [28 22:33:06 TUE]

PS: It's up to 976 pings because that's how long it's been since I rebooted my laptop.