LCDproc development and user support list

Text archives Help


[Lcdproc] CPU load


Chronological Thread 
  • From: lcd AT connecting.to.it (Edoardo Serra)
  • Subject: [Lcdproc] CPU load
  • Date: Sun Dec 2 02:00:02 2001

At 19.35 01/12/2001 +0100, David GLAUDE Mailing wrote:
>Send us (the mailing list) "check.pl" that's the only thing we don't know
>about.

#!/usr/bin/perl

use IO::Socket;
use Fcntl;

$remote = IO::Socket::INET->new(
Proto => "tcp",
PeerAddr => "localhost",
PeerPort => "13666",
);
$remote->autoflush(1);

`sleep 1`; # Give server plenty of time to notice us...

print $remote "hello\n";

my $lcdconnect = <$remote>;

fcntl($remote, F_SETFL, O_NONBLOCK);

print $remote "client_set name {check}\n";
print $remote "screen_add check\n";
print $remote "screen_set check 128 name {XXXX}\n";
print $remote "widget_add check title title\n";
print $remote "widget_set check title {XXXXXXXXXXXXXXXX}\n";
print $remote "widget_add check one string\n";
print $remote "widget_add check two string\n";
print $remote "widget_add check three string\n";
print $remote "widget_set check one 1 2 {xxxxxxxxxxx}\n";

[.... nothing related to LCDd ...]

while (1) {
[.... nothing related to LCDd ...]

print $remote "widget_set check two 1 3 {XXXXXXXXXXx}\n";
print $remote "widget_set check three 1 4 {$lcdstring}\n";
sleep 5;
}

As you can see the client connects to LCDd then goes in a loop
and every 5 seconds it sends a string to lcdd updating the screen

Do you see any problem??

>Can you reproduce this with only lcdproc and LCDd (without check.pl)?

LCDd has been running for 13 hours with lcdproc only and it didn't give the
problem

>Can you reproduce with only check.pl?

Testing...

>Can you reproduce it with two copy of lcdproc or check.pl?

testing.....

Tnx a lot
regards
Edoardo Serra


>David GLAUDE
>
>_______________________________________________
>LCDproc mailing list
>LCDproc AT lists.omnipotent.net
>http://lists.omnipotent.net/mailman/listinfo/lcdproc





Archive powered by MHonArc 2.6.18.

Top of page