[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] guptime bug
From: |
Mike Jones |
Subject: |
Re: [Mldonkey-users] guptime bug |
Date: |
Sun, 02 Mar 2003 15:37:46 +0000 |
I much prefer the options method too, that is why I originally asked on this
list how to get it to work with options.
But, no on replied, so I hacked in any method I could get working.
I'm still not completely comfortable with the structure of mld/plugins(or ocaml
in general), but I learn more with every attempt..
-----Original Message-----
From: MLdonkey <address@hidden>
To: "Mike Jones" <address@hidden>
Date: Sun, 2 Mar 2003 08:12:00 +0100
Subject: Re: [Mldonkey-users] guptime bug
> I use -23. The way in which the guptime variable was rewritten
> (from stats.ini) has it being added to itself on each save, which
> incorrectly has it increasing to often.
As far as I understand, there is still a bug: in
donkeyComplexOptions.ml, in function save, the line
guptime =:= !!guptime + (last_time () - start_time);
should be replaced by:
guptime =:= !!guptime + (last_time () - start_time) - !diff_time;
so that it only adds the increment after the last save.
> Maybe the rest is wrong too? I didn't look. But it used to work...
I cannot test it here, but I think the rest was fixed in -23.
> It was originally written so global's would only be loaded once and
> remain static, but on each save the static globals would be added
> to the dynamic session values to produce valid saved values.
Well, personnally, I like the Options format, and it merges better
like that with other stuff. But your patch did introduce a link
between DriverInteractive and DonkeyStats, which broke the plugin
architecture (plugins should not be refered directly from the
common/driver modules), and I think it is the reason why it was
modified like that. I hope the above fix works, and that -24 will come
soon ...
- MLDonkey