Package: ion3-scripts Version: 20061214-1 Severity: normal
Please consider this patch that fixes info_CPU_* values wich are nill because a wrong string.find() match in Debian systems. thanks, -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18x40 Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1) Versions of packages ion3-scripts depends on: ii ion3 20061029-3 keyboard-friendly window manager w ion3-scripts recommends no packages. -- no debconf information
--- statusd_info.lua.old 2006-12-25 19:55:00.000000000 -0300 +++ statusd_info.lua 2006-12-25 19:52:30.000000000 -0300 @@ -62,14 +62,13 @@ local f=io.popen('top b -n 2 -d 1|grep Cpu|tail -n 1','r') local s=f:read('*all') f:close() - local _, _, - info_CPU_user, - info_CPU_system, - info_CPU_ni, - info_CPU_idle, - info_CPU_wa, - info_CPU_hi, - info_CPU_si = string.find(s, "Cpu%(s%):%s+(%d+%.%d+%%) us,%s+(%d+%.%d+%%) sy,%s+(%d+%.%d+%%) ni,%s+(%d+%.%d+%%) id,%s+(%d+%.%d+%%) wa,%s+(%d+%.%d+%%) hi,%s+(%d+%.%d+%%) si") + local _, _, info_CPU_user = string.find(s, "Cpu%(s%):%s+(%d+%.%d+%%)") + local _, _, info_CPU_system = string.find(s, "%s+(%d+%.%d+%%)sy") + local _, _, info_CPU_ni = string.find(s, "%s+(%d+%.%d+%%)ni") + local _, _, info_CPU_idle = string.find(s, "%s+(%d+%.%d+%%)id") + local _, _, info_CPU_wa = string.find(s, "%s+(%d+%.%d+%%)wa") + local _, _, info_CPU_hi = string.find(s, "%s+(%d+%.%d+%%)hi") + local _, _, info_CPU_si = string.find(s, "%s+(%d+%.%d+%%)si") return info_CPU_user.."", info_CPU_system.."", info_CPU_ni.."", info_CPU_idle.."", info_CPU_wa.."", info_CPU_hi.."", info_CPU_si.."" end