#7810: Deskbar crashs when Battery::GetBatteryInfoCached ----------------------------------------+---------------------------- Reporter: Arnaud M. | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/PowerStatus | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: x86 ----------------------------------------+---------------------------- Comment (by korli): Replying to [comment:11 modeenf]: > Would changing line 101 {{{ if (fCachedAcpiInfo.current_rate > 0) }}} to {{{ if (fCachedAcpiInfo.current_rate > 0 || fRateBuffer.GetMeanRate() > 0) }}} fix that? {{{ if (fCachedAcpiInfo.current_rate > 0 && fRateBuffer.GetMeanRate() > 0) }}} would be fine. Sorry BTW I clicked on "Edit" instead of "Answer", and accidentally modified your comment. -- Ticket URL: <http://dev.haiku-os.org/ticket/7810#comment:13> Haiku <http://dev.haiku-os.org> Haiku - the operating system.