Commit 58593802 authored by David Anderson's avatar David Anderson

- manager: fix roundoff error in Advanced Prefs; fixes #613

svn path=/trunk/boinc/; revision=17409
parent 1b39ca23
......@@ -2348,3 +2348,9 @@ Charlie 27 Feb 2009
Mac_Saver_ModuleView.m, .h
screensaver.cpp, .h
screensaver_win.h
David 27 Feb 2009
- manager: fix roundoff error in Advanced Prefs; fixes #613
clientgui/
DlgAdvPreferences.cpp
......@@ -182,7 +182,7 @@ double CDlgAdvPreferences::TimeStringToDouble(wxString timeStr) {
// convert a double into a timestring HH:MM
wxString CDlgAdvPreferences::DoubleToTimeString(double dt) {
int hour = (int)dt;
int minutes = (int)(60.0 * (dt - hour));
int minutes = (int)(60.0 * (dt - hour)+.5);
return wxString::Format(wxT("%02d:%02d"),hour,minutes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment