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, 3 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

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