ER-wizard-WireGuard icon indicating copy to clipboard operation
ER-wizard-WireGuard copied to clipboard

"Latest handshake" is always modulo one hour

Open tgies opened this issue 2 years ago • 0 comments

The "Latest handshake" time will always show a time less than 59 minutes and 59 seconds, regardless if the latest handshake took place hours ago or on an entirely different day.

To fix this, the difference in days can be computed as $latesthandshakeago/86400 and %H can be added to the existing time format string to account for hours.

tgies avatar Jan 21 '23 03:01 tgies