← Back to team overview

bashareteam team mailing list archive

[Bug 483548] Re: Decrease bandwidth from menu

 

>From my quick analysis, the problem is a conversion problem:
In FMain.PiuBanda_Click(), you are getting "Vbanda" from "pausa" (1/pausa), then you change Vbanda (+10), then you convert that back to pausa (1/Vbanda) before finally displaying that, again converting it from pausa (1/pausa).

This makes that if there is an approximation due to the numbers after
the comma, your integer is not 10, but 9.

I have noted this bug passing from 200 till 209...

Guido, you know best about how pausa and Vbanda are related, so I
suppose you are the one that can fix this. In my opinion, you should
keep those 2 separated, Vbanda to display, and pausa to do whatever you
need to do with it. But right now you are making way too much
conversions, so that's where this bug appears ;)

-- 
Decrease bandwidth from menu
https://bugs.launchpad.net/bugs/483548
You received this bug notification because you are a member of BaShare
Team, which is subscribed to BaShare.

Status in BaShare, an easy to use http server with a gui: Confirmed

Bug description:
When I select the Decrease bandwidth from the menu, it will decrease the speed with 11KB/s instead of 10KB/s.
appeared:
0.4.996-RC5
0.5.0




References