From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22900 invoked from network); 29 Oct 2002 19:30:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Oct 2002 19:30:14 -0000 Received: (qmail 12732 invoked by alias); 29 Oct 2002 19:29:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17876 Received: (qmail 12691 invoked from network); 29 Oct 2002 19:29:26 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: SECONDS can be floating point In-reply-to: "Wayne Davison"'s message of "Tue, 29 Oct 2002 10:08:35 PST." <20021029180835.GC3142@scuzzy.blorf.net> Date: Tue, 29 Oct 2002 18:13:17 +0000 Message-ID: <24246.1035915197@csr.com> From: Peter Stephenson Wayne Davison wrote: > Perhaps the > bug is that the value is being saved/restored relative to "now"? (I > haven't looked at the local-variable code enough to know for sure.) Yes, that is what happens, so an alternative fix is to save and restore what's in shtime rather than use the value reported by the parameter. This requires yet more ugly parameter-specific code. In particular, you need to store a complete struct timeval. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************