From a4de51d667a37aa63bc733deee8eca4ccf8acdb4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 8 May 2010 19:20:57 +0000 Subject: [PATCH] - client: fix time-zone offset in net BW quota svn path=/trunk/boinc/; revision=21421 --- checkin_notes | 8 +++++++- client/net_stats.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index f9e51e323e..8a8c30ef6f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3414,7 +3414,13 @@ David 7 May 2010 credit.php (new) Rom 7 May 2010 - - DIAG: Make init functions consistant with one another. + - DIAG: Make init functions consistent with one another. lib/ diagnostics.cpp + +David 8 May 2010 + - client: fix time-zone offset in net BW quota + + client/ + net_stats.cpp diff --git a/client/net_stats.cpp b/client/net_stats.cpp index 64d4793a33..385521dc42 100644 --- a/client/net_stats.cpp +++ b/client/net_stats.cpp @@ -292,7 +292,7 @@ void DAILY_XFER::write(FILE* f) { } inline int current_day() { - return (int)((gstate.now-gstate.host_info.timezone)/86400); + return (int)((gstate.now + gstate.host_info.timezone)/86400); } DAILY_XFER* DAILY_XFER_HISTORY::today() {