From 5b419c266eaced31522284090469f5d7c2451cd2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 7 Jul 2011 22:21:56 +0000 Subject: [PATCH] - client: fix bug introduced in [23765] that produced garbage in 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 --- checkin_notes | 10 ++++++++++ lib/coproc.cpp | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 2530127dd1..dc31aaff6d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 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 diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 7c151c2713..0645432121 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -222,7 +222,7 @@ void COPROC_NVIDIA::write_xml(MIOFILE& f, bool include_request) { } f.printf( - " %d\n" + " %f\n" " %d\n" " %d\n" " %d\n" @@ -393,7 +393,7 @@ void COPROC_ATI::write_xml(MIOFILE& f, bool include_request) { write_request(f); } f.printf( - " %d\n" + " %f\n" " %s\n" " %d\n" " %d\n"