[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeutils/ksim/monitors/i8k
From: Nadeem Hasan <nhasan () nadmm ! com>
Date: 2003-06-01 3:37:31
[Download RAW message or body]
CVS commit by nhasan:
Updates.
M +4 -3 ksimi8k.cpp 1.5
--- kdeutils/ksim/monitors/i8k/ksimi8k.cpp #1.4:1.5
@@ -116,9 +116,10 @@ void I8KView::openStream()
kdDebug( 2003 ) << "i8k: Trying /proc/i8k...." << endl;
+ m_timer->stop();
+
if ( ( m_procFile = fopen( "/proc/i8k", "r" ) ) )
{
m_procStream = new QTextIStream( m_procFile );
disconnect( m_timer, 0, 0, 0 );
- m_timer->stop();
connect( m_timer, SIGNAL( timeout() ), SLOT( updateView() ) );
m_timer->start( m_interval*1000 );
@@ -130,5 +131,4 @@ void I8KView::openStream()
// i8k module is not loaded. Try again after 30 secs.
disconnect( m_timer, 0, 0, 0 );
- m_timer->stop();
connect( m_timer, SIGNAL( timeout() ), SLOT( openStream() ) );
m_timer->start( 30*1000 );
@@ -147,4 +147,5 @@ void I8KView::closeStream()
m_procFile = 0L;
m_procStream = 0L;
+ m_timer->stop();
}
@@ -175,5 +176,5 @@ void I8KView::updateView()
if ( line.isEmpty() )
{
- // i8k module is no longer available
+ // i8k module is no longer available, is it possible?
closeStream();
openStream();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic