#include #include #include "JSystem/JSysinfo.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to print system information. * \author mdejong */ int main(int argc, char* argv[]) { using namespace std; try { JParser<> zap("Example program to print system information."); zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } using namespace JPP; const JSysinfo info; cout << "up-time " << info.uptime << endl; cout << "RAM total " << info.totalram << endl; cout << "RAM free " << info.freeram << endl; cout << "memory " << info.mem_unit << endl; cout << "RAM " << info.getTotalRAM() << endl; }