bug fixes

svn path=/trunk/boinc/; revision=974
This commit is contained in:
Eric Heien 2003-02-26 01:04:42 +00:00
parent af0224bf6e
commit 86e62f5347
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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"