lordkrandel wrote:
> On 12/01/2011 11.29, lordkrandel wrote:
>
> return ('%.' + str(precision) + 'lf %s') % (bytes * factor / n, label)
Una cosa importante è che bytes * factor / n lavori con float,
altrimenti se viene immesso bytes e factor interi la divisione sarà intera.
Credo che basti fare (untested) bytes = float (bytes) da qualche parte.
Lorenzo.