Package: powertop
Version: 1.10-2
Followup-For: Bug #497929

While looking into debian/patches/add-support-for-charge_now, I stumpled
over this:

@@ -644,7 +651,7 @@ void print_battery_sysfs(void)
                        continue;
                memset(line, 0, 1024);
                if (fgets(line, 1024, file) != NULL) {
-                       watts_drawn = strtoull(line, NULL, 10) / 1000000.0;
+                       amperes_drawn = strtoull(line, NULL, 10) / 1000000.0;
                }
                fclose(file);

Changing watts to aperes didn't make much sense to me, so I removed this
hunk from the patch. The resulting powertop showed the correct current
wattage again.

So please either remove that patch or fix it so that it doesn't cause
regressions.

Regards,
Tino


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.2 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages powertop depends on:
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libncursesw5              5.6+20080925-1 shared libraries for terminal hand

powertop recommends no packages.

Versions of packages powertop suggests:
ii  cpufrequtils                  004-2      utilities to deal with the cpufreq
pn  laptop-mode-tools             <none>     (no description available)

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to