mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7009
This commit is contained in:
parent
bcb996b4a2
commit
6807bac55f
|
@ -20,10 +20,6 @@
|
|||
#ifndef _HOSTINFO_
|
||||
#define _HOSTINFO_
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "boinc_win.h"
|
||||
#endif
|
||||
|
||||
#include "miofile.h"
|
||||
|
||||
// Other host-specific info is kept in
|
||||
|
@ -58,12 +54,10 @@ struct HOST_INFO {
|
|||
double d_total; // Total amount of diskspace in bytes
|
||||
double d_free; // Total amount of available diskspace in bytes
|
||||
|
||||
HOST_INFO();
|
||||
int parse(MIOFILE&);
|
||||
int write(MIOFILE&);
|
||||
int parse_cpu_benchmarks(FILE*);
|
||||
int write_cpu_benchmarks(FILE*);
|
||||
void print();
|
||||
|
||||
bool host_is_running_on_batteries();
|
||||
bool users_idle(bool check_all_logins, double idle_time_to_run);
|
||||
|
|
|
@ -1 +1,26 @@
|
|||
// Berkeley Open Infrastructure for Network Computing
|
||||
// http://boinc.berkeley.edu
|
||||
// Copyright (C) 2005 University of California
|
||||
//
|
||||
// This is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation;
|
||||
// either version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This software is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU Lesser General Public License for more details.
|
||||
//
|
||||
// To view the GNU Lesser General Public License visit
|
||||
// http://www.gnu.org/copyleft/lesser.html
|
||||
// or write to the Free Software Foundation, Inc.,
|
||||
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
#ifndef __MEM_USAGE__
|
||||
#define __MEM_USAGE__
|
||||
|
||||
extern int mem_usage(double& vm_usage, double& resident_set);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue