Idle time logout mechanism (daemon)
Bob Peirce
rbp at investor.UUCP
Thu Jul 18 04:49:39 AEST 1985
> # -- ckmod
> # Check for midnight crossover
> if [ $HL -gt $HC ]
> then
> HL=`expr $HL + 24`
> fi
Peirce, you're an idiot. If HL is already greater than HC, adding
24 hours isn't going to help! Change that to HC=`expr $HC + 24`.
Then, in the next calculation you have a shot at finding a time
difference when midnight is overlapped.
--
Bob Peirce
uucp: ...!{allegra, bellcore, cadre, idis}
!pitt!darth!investor!rbp
More information about the Comp.unix.wizards
mailing list