mirror of https://github.com/BOINC/boinc.git
Windows compilation fix.
svn path=/trunk/boinc/; revision=237
This commit is contained in:
parent
77f5dd01d5
commit
55893b51da
|
@ -316,8 +316,8 @@ int boinc_resolve_link(char *file_name, char *resolved_name)
|
||||||
bool _checkpoint = false;
|
bool _checkpoint = false;
|
||||||
|
|
||||||
double get_cpu_time() {
|
double get_cpu_time() {
|
||||||
int retval, pid = getpid();
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
|
int retval, pid = getpid();
|
||||||
struct rusage ru;
|
struct rusage ru;
|
||||||
retval = getrusage(RUSAGE_SELF, &ru);
|
retval = getrusage(RUSAGE_SELF, &ru);
|
||||||
if(retval) fprintf(stderr, "error: could not get cpu time for %d\n", pid);
|
if(retval) fprintf(stderr, "error: could not get cpu time for %d\n", pid);
|
||||||
|
|
Loading…
Reference in New Issue