00001 /* 00002 KSysGuard, the KDE System Guard 00003 00004 Copyright (c) 1999 Chris Schlaeger <cs@kde.org> 00005 00006 Solaris support by Torsten Kasch <tk@Genetik.Uni-Bielefeld.DE> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 00022 */ 00023 00024 #ifndef _LoadAvg_h_ 00025 #define _LoadAvg_h_ 00026 00027 #define LOAD(a) ((double)(a) / (1 << 8 )) 00028 00029 void initLoadAvg(struct SensorModul* sm); 00030 void exitLoadAvg(void); 00031 00032 int updateLoadAvg(void); 00033 00034 void printLoadAvg1( const char *cmd ); 00035 void printLoadAvg1Info( const char *cmd ); 00036 void printLoadAvg5( const char *cmd ); 00037 void printLoadAvg5Info( const char *cmd ); 00038 void printLoadAvg15( const char *cmd ); 00039 void printLoadAvg15Info( const char *cmd ); 00040 00041 #endif /* _LoadAvg_h_ */
1.6.1