X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=8f028aa7ab9d7e8b2e9bde85e2386b1f66b8caf0;hb=6f82c4f1701f45cbae4bce7518eb40e645e6360a;hp=594bc67eea73c0c8762b1c6598a455616b50ba52;hpb=bca5cd40374f12da5e0d46980e54bffc61fdc9c9;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 594bc67e..8f028aa7 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -430,12 +430,17 @@ $conn->send_now("I$call|set/nobeep"); Msg->set_event_handler(\*STDIN, "read" => \&rec_stdin); +my $lastmin = 0; for (;;) { my $t; Msg->event_loop(1, 1); $t = time; if ($t > $lasttime) { - show_screen(); + my ($min)= (gmtime($t))[1]; + if ($min != $lastmin) { + show_screen(); + $lastmin = $min; + } $lasttime = $t; } $top->refresh() if $top->is_wintouched;