From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6992 invoked from network); 19 Dec 2003 11:43:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Dec 2003 11:43:36 -0000 Received: (qmail 12779 invoked by alias); 19 Dec 2003 11:43:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19326 Received: (qmail 12723 invoked from network); 19 Dec 2003 11:43:28 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Dec 2003 11:43:28 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.154.224.1] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Dec 2003 11:43:27 -0000 Received: from elektron.atoom.net (f52166.upc-f.chello.nl [80.56.52.166]) by open.nlnetlabs.nl (8.12.10/8.12.8) with ESMTP id hBJBhF7M005425; Fri, 19 Dec 2003 12:43:16 +0100 (CET) (envelope-from miekg@atoom.net) Received: from elektron.atoom.net (localhost [127.0.0.1]) by elektron.atoom.net (8.12.10/8.12.10/Debian-5) with ESMTP id hBJBhKPK013212; Fri, 19 Dec 2003 12:43:20 +0100 Received: (from miekg@localhost) by elektron.atoom.net (8.12.10/8.12.10/Debian-5) id hBJBhJlb013211; Fri, 19 Dec 2003 12:43:19 +0100 Date: Fri, 19 Dec 2003 12:43:19 +0100 From: Miek Gieben To: Bart Schaefer Cc: zsh workers Subject: Re: the watch variable Message-ID: <20031219114319.GB13100@atoom.net> References: <20031214000438.GA3374@atoom.net> <1031215182445.ZM13075@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1031215182445.ZM13075@candle.brasslantern.com> User-Agent: Vim/Mutt/Linux X-Home: www.miek.nl X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on open.nlnetlabs.nl X-Virus-Scanned: by amavisd-new [On 15 Dec, @19:24, Bart wrote in "Re: the watch variable ..."] > On Dec 14, 1:04am, Miek Gieben wrote: > } > } WATCHFMT='At %T %n has %a from %M.' > } watch=( notme ) > } > } And I notice that the login times are correct, i.e. it is the time > } that the person actually logged in. But the log off times are wrong. > } I'm seeing the current time in stead of the actual time someone logged > } off. > } > } Is this a bug? > > No, though I suppose you could call it a misfeature. > > Zsh only examines the most recent 50 records when determining login/out > times, because searching the entire wtmp file would take far too long. > So if there's a lot of activity on the system, the record for the person > in question may have been pushed beyond 50-record region, and zsh falls > back to the current time. > > If that doesn't seem to explain what you're seeing, let zsh-workers know. [ I'm cc workers now, i'm not subscribe to workers so plz cc me ] If what you are saying is correct, why I'm seeing this: [0:16|elektron ~] % At 12:39 AAA has logged off from node-c At 5:41 AAA has logged on from node-c At 12:37 BBBBB has logged on from 50-208.bbned [12:39|elektron ~] % The log-on times are remembered, the log-off time are always the current time. Is there a problem on my system with the wmtp file, or something? grtz Miek -- fingerprint = E1EB 29B8 8FA2 2923 62B8 0A2B 64B8 F15C 7764 AB4B http://miek.nl/about.html