mirror of https://github.com/BOINC/boinc.git
parent
af0224bf6e
commit
86e62f5347
|
@ -67,7 +67,7 @@ double CLIENT_STATE::current_work_buf_days() {
|
||||||
double CLIENT_STATE::work_needed_secs() {
|
double CLIENT_STATE::work_needed_secs() {
|
||||||
double x = current_work_buf_days();
|
double x = current_work_buf_days();
|
||||||
if (x > global_prefs.work_buf_max_days) return 0;
|
if (x > global_prefs.work_buf_max_days) return 0;
|
||||||
return (global_prefs.work_buf_max_days - x)*SECONDS_IN_DAY;
|
return (global_prefs.work_buf_max_days - x)*SECONDS_PER_DAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update exponentially-averaged CPU times of all projects
|
// update exponentially-averaged CPU times of all projects
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "windows_cpp.h"
|
||||||
|
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
|
|
Loading…
Reference in New Issue