diff -Nru lxtask-0.1.4/debian/changelog lxtask-0.1.4/debian/changelog --- lxtask-0.1.4/debian/changelog 2012-05-18 18:26:05.000000000 +0100 +++ lxtask-0.1.4/debian/changelog 2013-04-15 21:16:17.000000000 +0100 @@ -1,3 +1,9 @@ +lxtask (0.1.4-3+rpi1) wheezy-staging; urgency=low + + * Use nprocs function instead of trying to parse /proc/cpuinfo + + -- Peter Michael Green Mon, 15 Apr 2013 20:15:39 +0000 + lxtask (0.1.4-3) unstable; urgency=low * Correcting spelling of lxtask in package long description. diff -Nru lxtask-0.1.4/debian/patches/02-use-nprocs.patch lxtask-0.1.4/debian/patches/02-use-nprocs.patch --- lxtask-0.1.4/debian/patches/02-use-nprocs.patch 1970-01-01 01:00:00.000000000 +0100 +++ lxtask-0.1.4/debian/patches/02-use-nprocs.patch 2013-04-15 21:15:18.000000000 +0100 @@ -0,0 +1,38 @@ +Description: use nprocs() function instead of /proc/cpuinfo + /proc/cpuinfo varies a lot between architectures leading to the code + identifying zero CPUs on some systems and hence ending up reporting a cpu + usage of -1 + +Author: Peter Michael Green +Bug-Raspbian: https://bugs.launchpad.net/raspbian/+bug/1128012 + +--- lxtask-0.1.4.orig/src/xfce-taskmanager-linux.c ++++ lxtask-0.1.4/src/xfce-taskmanager-linux.c +@@ -28,7 +28,7 @@ + #include + #include + #include "xfce-taskmanager-linux.h" +- ++#include + + #if 1 + void get_task_details(gint pid,struct task *task) +@@ -378,17 +378,7 @@ gboolean get_system_status (system_statu + + if(!cpu_count) + { +- file = fopen ("/proc/cpuinfo", "r"); +- if(!file) return FALSE; +- while (fgets (buffer, 100, file) != NULL) +- { +- if(buffer[0]!='p') continue; +- if(!strncmp(buffer,"processor",9)) +- { +- cpu_count++; +- } +- } +- fclose (file); ++ cpu_count=get_nprocs(); + } + sys_stat->cpu_count=cpu_count; + return TRUE; diff -Nru lxtask-0.1.4/debian/patches/series lxtask-0.1.4/debian/patches/series --- lxtask-0.1.4/debian/patches/series 2012-04-28 11:05:34.000000000 +0100 +++ lxtask-0.1.4/debian/patches/series 2013-04-15 21:10:52.000000000 +0100 @@ -1 +1,2 @@ 01-kfreebsd.patch +02-use-nprocs.patch