- client: fix bug introduced in [23765] that produced garbage

in <coproc> elements in sched req msgs and elsewhere.
         peak_flops is a double.
         If you print it using %d, everything from that point forward
         is messed up.

svn path=/trunk/boinc/; revision=23815
This commit is contained in:
David Anderson 2011-07-07 22:21:56 +00:00
parent f526fb0980
commit 5b419c266e
2 changed files with 12 additions and 2 deletions

View File

@ -3935,3 +3935,13 @@ David 7 July 2011
client/
client_state.cpp
David 7 July 2011
- client: fix bug introduced in [23765] that produced garbage
in <coproc> elements in sched req msgs and elsewhere.
peak_flops is a double.
If you print it using %d, everything from that point forward
is messed up.
lib/
coproc.cpp

View File

@ -222,7 +222,7 @@ void COPROC_NVIDIA::write_xml(MIOFILE& f, bool include_request) {
}
f.printf(
" <peak_flops>%d</peak_flops>\n"
" <peak_flops>%f</peak_flops>\n"
" <cudaVersion>%d</cudaVersion>\n"
" <drvVersion>%d</drvVersion>\n"
" <deviceHandle>%d</deviceHandle>\n"
@ -393,7 +393,7 @@ void COPROC_ATI::write_xml(MIOFILE& f, bool include_request) {
write_request(f);
}
f.printf(
" <peak_flops>%d</peak_flops>\n"
" <peak_flops>%f</peak_flops>\n"
" <CALVersion>%s</CALVersion>\n"
" <target>%d</target>\n"
" <localRAM>%d</localRAM>\n"