Comment 10 for bug 483548

Revision history for this message
Emilien Klein (emilien-klein) wrote :

I'm not proposing you add variables, I'm proposing you don't recalculate a value that you already have.

Why don't you do something like
    ME.labBand.text = Vbanda & " KB/s"
instead of
    ME.labBand.text = (Impostazioni.Calc_banda(pausa)) & " KB/s"

You already have the value of the band (either Vbanda +10, or MaxBanda), so just reuse it to display.