[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/ksysguard/ksysguardd/Linux
From: John Tapsell <john.tapsell () kdemail ! net>
Date: 2009-11-25 1:28:44
Message-ID: 1259112524.964469.11539.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1053925 by johnflux:
Start from "CPU 1" instead of "CPU 0"
M +6 -6 stat.c
--- trunk/KDE/kdebase/workspace/ksysguard/ksysguardd/Linux/stat.c #1053924:1053925
@@ -765,7 +765,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d User Load\t0\t100\t%%\n", id );
+ output( "CPU %d User Load\t0\t100\t%%\n", id+1 );
}
void printCPUxNice( const char* cmd ) {
@@ -782,7 +782,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d Nice Load\t0\t100\t%%\n", id );
+ output( "CPU %d Nice Load\t0\t100\t%%\n", id+1 );
}
void printCPUxSys( const char* cmd ) {
@@ -799,7 +799,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d System Load\t0\t100\t%%\n", id );
+ output( "CPU %d System Load\t0\t100\t%%\n", id+1 );
}
void printCPUxTotalLoad( const char* cmd ) {
@@ -816,7 +816,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d\t0\t100\t%%\n", id );
+ output( "CPU %d\t0\t100\t%%\n", id+1 );
}
void printCPUxIdle( const char* cmd ) {
@@ -833,7 +833,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d Idle Load\t0\t100\t%%\n", id );
+ output( "CPU %d Idle Load\t0\t100\t%%\n", id+1 );
}
void printCPUxWait( const char* cmd )
@@ -852,7 +852,7 @@
int id;
sscanf( cmd + 7, "%d", &id );
- output( "CPU %d Wait Load\t0\t100\t%%\n", id );
+ output( "CPU %d Wait Load\t0\t100\t%%\n", id+1 );
}
void print24DiskTotal( const char* cmd ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic