I'm not sure if it is officially a bug, or just a side-effect of the way
floating point numbers are converted to integers. Due to the way most languages
store non-integer numbers, there is no way to guarantee that they will be
stored precisely. So 1.130 may actually be internally stored as 1.12999999,
which rounds down to 1.12 !
- Jamie
"Floyd Morrissette" <floyd@...> wrote ..
> Ok now I am curious. Is that a perl bug?
>
> Floyd
>
> ----- Original Message -----
> From: "Jamie Cameron" <jcameron@...>
> To: <webadmin-list@...>
> Sent: Tuesday, February 24, 2004 5:04 PM
> Subject: Re: [webmin-l] when updating modules old version is seen
>
>
> > I know what the cause of this is ..
> >
> > When the first copy of Webmin 1.130 was release, it has a bug that
> > prevented updates from working properly. Luckily I caught this almost
> > immediately, but some people (such as yourself) must have downloaded
> the
> > broken version. To fix it, you should re-download version 1.130 and
> > upgrade to it on each box with the problem.
> >
> > For those who know Perl and want to understand why this bug happens,
> try
> > running the following command :
> >
> > perl -e 'print int(1.130*100),"\n"'
> >
> > You would assume that the result is 113, but it is actually 112 ! This
> > oddity is what caused the automatic update feature to fail ..
> >
> > - Jamie
> >
> > On Wed, 2004-02-25 at 01:56, tbuchanan@... wrote:
> > > I haven't seen anyone else describe this problem but after upgrading
> via
> > > the tar.gz to Webmin 1.130
> > > from 1.120, when I check for update to modules, only the ones for 1.120
> > > are show as being already
> > > updated. I have to manually install any updated modules. The only
> > > exceptions to this (I think) are
> > > on boxes that had a fresh install of Webmin. This occurs over RHL
> 7.3,
> > > 9.0, WBEL, and Fedora 1.
> > > Is there a quick fix or do I need to uninstall and reinstall on each
> box?
> > > Thanks.
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > -
> > Forwarded by the Webmin mailing list at
> webadmin-list@...
> > To remove yourself from this list, go to
> > http://lists.sourceforge.net/lists/listinfo/webadmin-list
> >
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> -
> Forwarded by the Webmin mailing list at webadmin-list@...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
|