mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-12 16:50:15 +00:00
(Phil) Improved the speed by a lot.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@490 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bcb6b86014
commit
1b4a230a5d
1 file changed
+7
-5
@@ -14,18 +14,20 @@ $temp=`echo "254 88" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
# Turn off the blinking cursor
|
||||
$temp=`echo "254 84" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
|
||||
$line=1;
|
||||
$linenum=1;
|
||||
|
||||
while (<STDIN>) {
|
||||
# Reset the position of the cursor to the next line
|
||||
$temp=`echo "254 71 1 $line" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
$temp=`echo "254 71 1 $linenum" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
if (/^(.{1,20})/) {
|
||||
$_=$1;
|
||||
$line="";
|
||||
while (/(.)/gc) {
|
||||
$temp=ord($1);
|
||||
$temp=`echo "$temp" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
$line="$line $temp";
|
||||
}
|
||||
$temp=`echo "$line" > /proc/sys/dev/sensors/matorb*/disp`;
|
||||
}
|
||||
$line= $line + 1;
|
||||
if ($line > 4) { exit; }
|
||||
$linenum+=1;
|
||||
if ($linenum > 4) { exit; }
|
||||
}
|
||||
Reference in new issue
Block a user