[Webkit-unassigned] [Bug 92964] [EFL] Change return value of battey level

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 03:52:45 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92964





--- Comment #3 from Kihong Kwon <kihong.kwon at samsung.com>  2012-08-02 03:52:44 PST ---
(In reply to comment #2)
> (From update of attachment 156027 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=156027&action=review
> 
> > Source/WebCore/platform/efl/BatteryProviderEfl.cpp:165
> >          levelChanged = true;
> >      level = property->val.d;
> >  
> > -    WTF::RefPtr<BatteryStatus> batteryStatus = BatteryStatus::create(charging, chargingTime, dischargingTime, level);
> > +    WTF::RefPtr<BatteryStatus> batteryStatus = BatteryStatus::create(charging, chargingTime, dischargingTime, level / 100);
> 
> If then, should we compare with clientBatteryStatus->level() * 100 and property->val.d ?
> 
> IMO, you'd better to assign property->val.d / 100 to `level` to reduce confusion.

You are right. It was my mistake.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list