Major power concern

Marco Pesenti Gritti mpgritti at gmail.com
Tue Oct 7 03:56:10 EDT 2008


On Tue, Oct 7, 2008 at 6:02 AM, John Gilmore <gnu at toad.com> wrote:
>  /usr/share/sugar/shell/view/devices/battery.py
>
>                #TODO: make this less of an wild/educated guess
>                minutes_remaining = int(current_level / 0.59)
>                remaining_hourpart = minutes_remaining / 60
>                remaining_minpart = minutes_remaining % 60
>                secondary_text = _('%(hour)d:%(min).2d remaining'
>                                   % { 'hour': remaining_hourpart,
>                                       'min': remaining_minpart})
>
> How, uh, unusual to slip this into a release at the last minute!
>
> The battery code has moved all around in the last two weeks (I think
> it's been in three different places in the Sugar tree), so I found
> it too hard to track who put this change in, and why.

It's not hard at all, just use gitweb to look at the history of the
file in the sucrose-0.82 branch. And it's not a last minute change.

http://dev.laptop.org/git?p=sugar;a=commitdiff;h=cf6bd9384004cb47cf5a0f77c31049624cff7dd0

Marco


More information about the Devel mailing list