- client: fix typo that caused a lot of spurious

"project has XXXXXX deadline misses" messages
- fix compile warnings


svn path=/trunk/boinc/; revision=23816
This commit is contained in:
David Anderson 2011-07-07 23:58:23 +00:00
parent 5b419c266e
commit a21abed078
3 changed files with 14 additions and 5 deletions

View File

@ -3945,3 +3945,12 @@ David 7 July 2011
lib/
coproc.cpp
David 7 July 2011
- client: fix typo that caused a lot of spurious
"project has XXXXXX deadline misses" messages
- fix compile warnings
client/
sandbox.cpp
rr_sim.cpp

View File

@ -236,11 +236,11 @@ void CLIENT_STATE::print_deadline_misses() {
for (i=0; i<projects.size(); i++) {
p = projects[i];
for (int j=0; j<coprocs.n_rsc; j++) {
if (p->rsc_pwf[i].deadlines_missed) {
if (p->rsc_pwf[j].deadlines_missed) {
msg_printf(p, MSG_INFO,
"[cpu_sched] Project has %d projected %s deadline misses",
p->rsc_pwf[i].deadlines_missed,
rsc_name(i)
p->rsc_pwf[j].deadlines_missed,
rsc_name(j)
);
}
}

View File

@ -96,8 +96,8 @@ int switcher_exec(const char *util_filename, const char* cmdline) {
char util_path[1024];
sprintf(util_path, "%s/%s", SWITCHER_DIR, util_filename);
argv[0] = (char*)util_filename;
parse_command_line((char*)cmdline, argv+1);
argv[0] = const_cast<char*>(util_filename);
parse_command_line(const_cast<char*>(cmdline), argv+1);
int pid = fork();
if (pid == -1) {
perror("fork() failed in switcher_exec");