[Kde-hardware-devel] batteryChargePercent
Kevin Ottens
ervin at kde.org
Sat May 10 00:23:30 CEST 2008
Le mercredi 7 mai 2008, Thomas Gillespie a écrit :
> I get a divide by zero error in batteryChargePercent, i think its because
> solid isnt picking up my battery correctly (which is a bug in itself?)
After investigation it's simply that the predicate used was wrong. It's now
fixed.
> but surely there should be some 0 checking for m_maxBatteryCharge anyway?
OK, thanks for spotting it... That'll teach me to test powersaving features on
the laptop only. :-)
Anyway, I committed a fix just now.
Regards.
--
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20080510/dc7231b9/attachment.pgp
More information about the Kde-hardware-devel
mailing list