summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/load.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/load.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/load.cpp b/noncore/settings/sysinfo/load.cpp
index 900b3d3..d9d7a66 100644
--- a/noncore/settings/sysinfo/load.cpp
+++ b/noncore/settings/sysinfo/load.cpp
@@ -119,25 +119,25 @@ Load::Load( QWidget *parent, const char *name, WFlags f )
119 userLoad[i] = 0.0; 119 userLoad[i] = 0.0;
120 systemLoad[i] = 0.0; 120 systemLoad[i] = 0.0;
121 } 121 }
122 maxLoad = 1.3; 122 maxLoad = 1.3;
123 QTimer *timer = new QTimer( this ); 123 QTimer *timer = new QTimer( this );
124 connect( timer, SIGNAL(timeout()), SLOT(timeout()) ); 124 connect( timer, SIGNAL(timeout()), SLOT(timeout()) );
125 timer->start( 2000 ); 125 timer->start( 2000 );
126 gettimeofday( &last, 0 ); 126 gettimeofday( &last, 0 );
127 first = TRUE; 127 first = TRUE;
128 timeout(); 128 timeout();
129} 129}
130 130
131void Load::paintEvent( QPaintEvent *ev ) 131void Load::paintEvent( QPaintEvent * )
132{ 132{
133 QPainter p( this ); 133 QPainter p( this );
134 134
135 int h = height() - 5; 135 int h = height() - 5;
136 136
137 int mult = (int)(h / maxLoad); 137 int mult = (int)(h / maxLoad);
138 138
139 p.setPen( gray ); 139 p.setPen( gray );
140 p.drawLine( 0, h - mult, width(), h - mult ); 140 p.drawLine( 0, h - mult, width(), h - mult );
141 p.drawText( 0, h - mult, "100" ); 141 p.drawText( 0, h - mult, "100" );
142 p.drawText( 0, h, "0" ); 142 p.drawText( 0, h, "0" );
143 143