~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to ksysguard/ksysguardd/Solaris/LoadAvg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
   
 
4
        Copyright (c) 1999 Chris Schlaeger <cs@kde.org>
 
5
 
 
6
        Solaris support by Torsten Kasch <tk@Genetik.Uni-Bielefeld.DE>
 
7
    
 
8
    This program is free software; you can redistribute it and/or modify
 
9
    it under the terms of the GNU General Public License as published by
 
10
    the Free Software Foundation; either version 2 of the License, or
 
11
    (at your option) any later version.
 
12
 
 
13
    This program is distributed in the hope that it will be useful,
 
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
    GNU General Public License for more details.
 
17
 
 
18
    You should have received a copy of the GNU General Public License
 
19
    along with this program; if not, write to the Free Software
 
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
 
 
22
*/
 
23
 
 
24
#ifndef _LoadAvg_h_
 
25
#define _LoadAvg_h_
 
26
 
 
27
#define LOAD(a) ((double)(a) / (1 << 8 ))
 
28
 
 
29
void initLoadAvg(struct SensorModul* sm);
 
30
void exitLoadAvg(void);
 
31
 
 
32
int updateLoadAvg(void);
 
33
 
 
34
void printLoadAvg1( const char *cmd );
 
35
void printLoadAvg1Info( const char *cmd );
 
36
void printLoadAvg5( const char *cmd );
 
37
void printLoadAvg5Info( const char *cmd );
 
38
void printLoadAvg15( const char *cmd );
 
39
void printLoadAvg15Info( const char *cmd );
 
40
 
 
41
void printCPUIdle( const char *cmd );
 
42
void printCPUIdleInfo( const char *cmd );
 
43
 
 
44
void printCPUxUser( const char* cmd );
 
45
void printCPUxUserInfo( const char* cmd );
 
46
void printCPUxKernel( const char* cmd );
 
47
void printCPUxKernelInfo( const char* cmd );
 
48
void printCPUxTotalLoad( const char* cmd );
 
49
void printCPUxTotalLoadInfo( const char* cmd );
 
50
void printCPUxIdle( const char* cmd );
 
51
void printCPUxIdleInfo( const char* cmd );
 
52
void printCPUxWait( const char* cmd );
 
53
void printCPUxWaitInfo( const char* cmd );
 
54
 
 
55
#endif /* _LoadAvg_h_ */