* ntpmonitor.sh (main):
Fixed offset calculation.
Added global vars.