mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] Re: client_stats still broken?


From: Michael Panteleit
Subject: [Mldonkey-users] Re: client_stats still broken?
Date: Wed, 11 Dec 2002 11:05:14 +0100

Lars Heiermann <address@hidden> wrote:
> | Uptime: 904 seconds (0+00:15)
> |                 Total seens:                598
> |                     eDonkey:                  3 (0.50 %)
> |                old mldonkey:                 26 (4.35 %)
> 
> Did I miss something during the upgrade?

I found the following in the sources in donkey/donkeyStats.ml:

    Printf.bprintf buf "                Total seens: %18d\n" 
stats_all.brand_seen;
    for i=1 to brand_count-1 do
        Printf.bprintf buf "%27s: %18d (%3.2f %%)\n" 
          (brand_to_string (brand_of_int i)) 
          stats_by_brand.(i).brand_seen 
          (100. *. (float_of_int stats_by_brand.(i).brand_seen) /. 
(float_of_int stats_all.brand_seen))
    done

but brand_of_int seems not defined for i=3. So I chnaged it to:


    Printf.bprintf buf "                Total seens: %18d\n" 
stats_all.brand_seen;
    for i=1 to brand_count-1 do
      if i <> 3 then begin
        Printf.bprintf buf "%27s: %18d (%3.2f %%)\n" 
          (brand_to_string (brand_of_int i)) 
          stats_by_brand.(i).brand_seen 
          (100. *. (float_of_int stats_by_brand.(i).brand_seen) /. 
(float_of_int stats_all.brand_seen))
      end
    done

You have to fix this 4 times, once for "seen", "file-request", "upload" and 
"download".

Meikel
________________________________________________________________
Viren? Wir wissen nicht was Ihr Arzt empfiehlt. Wir empfehlen den
Virencheck für Dateianhänge! http://freemail.web.de/features/?mc=021159





reply via email to

[Prev in Thread] Current Thread [Next in Thread]