mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5237
This commit is contained in:
parent
aa6b06a2a9
commit
19dbc6af67
|
@ -23380,3 +23380,13 @@ David 28 Jan 2005
|
||||||
client_state.C
|
client_state.C
|
||||||
gui_rpc_server.C
|
gui_rpc_server.C
|
||||||
time_stats.C,h
|
time_stats.C,h
|
||||||
|
|
||||||
|
David 28 Jan 2005
|
||||||
|
- when including FILE_INFOs for sticky files in scheduler request,
|
||||||
|
include the file size and status
|
||||||
|
(0=not present, 1=present, else error code)
|
||||||
|
- change TIME_STATS::last_update from int to double
|
||||||
|
|
||||||
|
client/
|
||||||
|
cs_scheduler.C
|
||||||
|
time_stats.C,h
|
||||||
|
|
|
@ -276,9 +276,11 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p, double work_req) {
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
" <file_info>\n"
|
" <file_info>\n"
|
||||||
" <name>%s</name>\n"
|
" <name>%s</name>\n"
|
||||||
|
" <nbytes>%f</nbytes>\n"
|
||||||
|
" <status>%d</status>\n"
|
||||||
" <report_on_rpc/>\n"
|
" <report_on_rpc/>\n"
|
||||||
" </file_info>\n",
|
" </file_info>\n",
|
||||||
fip->name
|
fip->name, fip->nbytes, fip->status
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
fprintf(f, "</scheduler_request>\n");
|
fprintf(f, "</scheduler_request>\n");
|
||||||
|
|
|
@ -104,7 +104,7 @@ int TIME_STATS::write(MIOFILE& out, bool to_server) {
|
||||||
);
|
);
|
||||||
if (!to_server) {
|
if (!to_server) {
|
||||||
out.printf(
|
out.printf(
|
||||||
" <last_update>%d</last_update>\n",
|
" <last_update>%f</last_update>\n",
|
||||||
last_update
|
last_update
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ int TIME_STATS::parse(MIOFILE& in) {
|
||||||
|
|
||||||
while (in.fgets(buf, 256)) {
|
while (in.fgets(buf, 256)) {
|
||||||
if (match_tag(buf, "</time_stats>")) return 0;
|
if (match_tag(buf, "</time_stats>")) return 0;
|
||||||
else if (parse_int(buf, "<last_update>", last_update)) continue;
|
else if (parse_double(buf, "<last_update>", last_update)) continue;
|
||||||
else if (parse_double(buf, "<on_frac>", on_frac)) continue;
|
else if (parse_double(buf, "<on_frac>", on_frac)) continue;
|
||||||
else if (parse_double(buf, "<connected_frac>", connected_frac)) continue;
|
else if (parse_double(buf, "<connected_frac>", connected_frac)) continue;
|
||||||
else if (parse_double(buf, "<active_frac>", active_frac)) continue;
|
else if (parse_double(buf, "<active_frac>", active_frac)) continue;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "miofile.h"
|
#include "miofile.h"
|
||||||
|
|
||||||
class TIME_STATS {
|
class TIME_STATS {
|
||||||
int last_update;
|
double last_update;
|
||||||
bool first;
|
bool first;
|
||||||
public:
|
public:
|
||||||
// we maintain an exponentially weighted average of these quantities:
|
// we maintain an exponentially weighted average of these quantities:
|
||||||
|
|
Loading…
Reference in New Issue