My rewrite
My rewrite and enhancements.
- Make some enhancements to improve future enhancements.
- Initial need was due to
dig
using my~/.digrc
by default which the current code did not account for. - I took the liberty to add extra's while doing a total rewrite
😉
Oh for got to mention the notable changes, forgive me if i forget some "i'm old"...
- The total rewrite makes use of OOP
😉 - Allows adding more as 2 IP's per resolver.
- Uses all IP's per resolver to calculate avgTime's, as can be seen in the image i posted.
- Automatically adjust the displayed time and units used, adjusting as needed:
µs
->ms
->sec
->min
- Uses visual fractions to convert common numbers after the dot only when possible, as can be seen in the image i posted.
- Got rid of
awk
andgrep
use, replaced withsed
and usedbc
for math as needed.
Current TODO
's and FIXME
's are marked in the sources, as well as blocks to aid in debugging while developing with DEBUG-DEV
's...
- Current TODO's out of my head at moment:
-
Make the script accept command line options.
-
Edited by Tripple Moon