ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/host/sysinfo/load.cc
Revision: 1.2
Committed: Tue Nov 7 17:55:08 2000 UTC (23 years, 11 months ago) by tdb
Branch: MAIN
CVS Tags: PROJECT_COMPLETION, HEAD
Changes since 1.1: +4 -10 lines
Log Message:
Load class and header file.

File Contents

# User Rev Content
1 tdb 1.2 #include "load.hh"
2 tdb 1.1
3 tdb 1.2 void printLoad() {
4 tdb 1.1 double loadavg[3];
5     int res = getloadavg(loadavg, 3);
6    
7 tdb 1.2 cout << "load average: " << loadavg[0] << ", "
8     << loadavg[1] << ", " << loadavg[2] << endl;
9 tdb 1.1 }