From: Bernard Li <bl...@sy...> - 2006-05-03 05:59:31
|
Author: bli Date: 2006-05-03 00:59:16 -0500 (Wed, 03 May 2006) New Revision: 3547 Modified: trunk/sbin/si_monitortk Log: Only refresh virtual console message if there were no errors retrieving previous messages - in this case, if we cannot reach the host for previous messages, it will not print the last message from /var/lib/systemimager/clients.xml Modified: trunk/sbin/si_monitortk =================================================================== --- trunk/sbin/si_monitortk 2006-05-01 17:43:52 UTC (rev 3546) +++ trunk/sbin/si_monitortk 2006-05-03 05:59:16 UTC (rev 3547) @@ -498,15 +498,14 @@ 'title' ); } + # Refresh console view (default 100ms). + my $cons_timer = Tk::After->new( + $sub_win, + 100, + 'repeat', + \&refresh_console + ); } - - # Refresh console view (default 100ms). - my $cons_timer = Tk::After->new( - $sub_win, - 100, - 'repeat', - \&refresh_console - ); } # Usage: |