-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential inaccuracy by reducing
date
usage
The previous release did 5+ `date` invocations in various parts of the script, potentially leading to inaccurate calculations around midnight, when the "now" values could potentially roll over into a new day. This release makes just 2 calls in quick succession, gathering all the data needed for subsequent calculations at one go. Also addressed all shellcheck complaints -- this code is now "clean".
- Loading branch information
Adrian Ho
committed
Jan 27, 2019
1 parent
55cfcb8
commit f55dab6
Showing
1 changed file
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters