- client: fix time-zone offset in net BW quota

svn path=/trunk/boinc/; revision=21421
This commit is contained in:
David Anderson 2010-05-08 19:20:57 +00:00
parent 9e2e47c1de
commit a4de51d667
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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() {