Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site investor.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!cmu-cs-pt!cadre!pitt!darth!investor!rbp From: rbp@investor.UUCP (Bob Peirce) Newsgroups: net.unix,net.unix-wizards Subject: Re: Idle time logout mechanism (daemon) Message-ID: <217@investor.UUCP> Date: Wed, 17-Jul-85 14:49:39 EDT Article-I.D.: investor.217 Posted: Wed Jul 17 14:49:39 1985 Date-Received: Sat, 20-Jul-85 02:46:02 EDT References: <250@ubvax.UUCP> <215@investor.UUCP> Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 17 Xref: watmath net.unix:5069 net.unix-wizards:13900 > # -- 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