From 12dc1852a77227f13d1c0ebda6180edfc8fc1fd0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 2 Oct 2009 18:48:50 +0000 Subject: [PATCH] - wrapper: fix fraction done feature svn path=/trunk/boinc/; revision=19231 --- checkin_notes | 6 ++++++ samples/wrapper/wrapper.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 5d6423a8b6..42e4a95391 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8335,3 +8335,9 @@ David 2 Oct 2009 util_ops.inc ops/ (most).php + +David 2 Oct 2009 + - wrapper: fix fraction done feature + + samples/wrapper/ + wrapper.cpp diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index cbe5e4cfa5..acb90f8c3e 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -112,7 +112,7 @@ struct TASK { FILE* f = fopen(fraction_done_filename.c_str(), "r"); if (!f) return 0; double frac; - int n = fscanf(f, "%f", &frac); + int n = fscanf(f, "%lf", &frac); fclose(f); if (n != 1) return 0; if (frac < 0) return 0;