Skip Menu |

This queue is for tickets about the Acpi CPAN distribution.

Report information
The Basics
Id: 57131
Status: new
Priority: 0/
Queue: Acpi

People
Owner: Nobody in particular
Requestors: sebkoehler [...] whoami.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Acpi::Battery crashes when only one Battery is installed
Date: Sun, 2 May 2010 02:22:36 +0200
To: bug-Acpi [...] rt.cpan.org
From: Sebastian Köhler <sebkoehler [...] whoami.org.uk>
Hi, with only one Battery installed Acpi::Battery crashes with this error Message: Impossible d'ouvrir /proc/acpi/battery/BAT1/state : Datei oder Verzeichnis nicht gefunden at /usr/share/perl5/site_perl/5.10.1/Acpi/Field.pm line 19 After looking into the Battery.pm I think all those for- loops("for($i=1;$i<=$numbatt;$i++)") should begin with "$i = 0" and not with "1" As Linux starts counting of Batteries at 0 and not 1. System information: Distribution name and version: acpi/Acpi-0.1.tar.gz Perl version: v5.10.1 (*) built for i686-linux-thread-multi Operating System: Linux laptop 2.6.33-ARCH #1 SMP PREEMPT Mon Apr 26 20:00:20 CEST 2010 i686 Intel(R) Core(TM)2 Duo CPU T6400 @ 2.00GHz GenuineIntel GNU/Linux -- The best thing about a boolean is even if you are wrong, you are only off by a bit.