zsh-users
 help / color / mirror / code / Atom feed
* the watch variable
@ 2003-12-14  0:04 Miek Gieben
  2003-12-15 18:24 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Miek Gieben @ 2003-12-14  0:04 UTC (permalink / raw)
  To: zsh users

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

Hello,

I've the following in my .zprofile:
 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. 
(current time == when I press <enter> on a xterm)

Is this a bug? 

grtz
      Miek
--
fingerprint = E1EB 29B8 8FA2 2923 62B8  0A2B 64B8 F15C 7764 AB4B
http://miek.nl/about.html

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: the watch variable
  2003-12-14  0:04 the watch variable Miek Gieben
@ 2003-12-15 18:24 ` Bart Schaefer
  2003-12-15 18:35   ` Miek Gieben
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2003-12-15 18:24 UTC (permalink / raw)
  To: zsh users

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: the watch variable
  2003-12-15 18:24 ` Bart Schaefer
@ 2003-12-15 18:35   ` Miek Gieben
  0 siblings, 0 replies; 3+ messages in thread
From: Miek Gieben @ 2003-12-15 18:35 UTC (permalink / raw)
  To: zsh users

[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.

yes, that explains it. Although I have never seen it when people are logging
in,

thanks,

grtz
      Miek
--
fingerprint = E1EB 29B8 8FA2 2923 62B8  0A2B 64B8 F15C 7764 AB4B
http://miek.nl/about.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-15 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-14  0:04 the watch variable Miek Gieben
2003-12-15 18:24 ` Bart Schaefer
2003-12-15 18:35   ` Miek Gieben

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).