mirror of https://github.com/BOINC/boinc.git
- client: bug fixes for the above
svn path=/trunk/boinc/; revision=21240
This commit is contained in:
parent
15f0b193e9
commit
968c8a78e1
|
@ -3027,3 +3027,10 @@ David 21 Apr 2010
|
|||
file_names.h
|
||||
http_curl.cpp
|
||||
net_stats.cpp,h
|
||||
|
||||
David 21 Apr 2010
|
||||
- client: bug fixes for the above
|
||||
|
||||
client/
|
||||
client_state.cpp
|
||||
net_stats.cpp
|
||||
|
|
|
@ -265,7 +265,7 @@ int CLIENT_STATE::init() {
|
|||
if (host_info.coprocs.coprocs.size() == 0) {
|
||||
msg_printf(NULL, MSG_INFO, "No usable GPUs found");
|
||||
}
|
||||
#if 0
|
||||
#if 1
|
||||
msg_printf(NULL, MSG_INFO, "Faking an NVIDIA GPU");
|
||||
coproc_cuda = fake_cuda(host_info.coprocs, 256*MEGA, 2);
|
||||
coproc_cuda->available_ram_fake[0] = 256*MEGA;
|
||||
|
|
|
@ -302,6 +302,7 @@ DAILY_XFER* DAILY_XFER_HISTORY::today() {
|
|||
DAILY_XFER dx;
|
||||
dx.when = d;
|
||||
daily_xfers.push_front(dx);
|
||||
return &(daily_xfers.front());
|
||||
}
|
||||
|
||||
void DAILY_XFER_HISTORY::add(size_t x, bool upload) {
|
||||
|
@ -349,7 +350,7 @@ void DAILY_XFER_HISTORY::poll() {
|
|||
if (gstate.now - last_time < DAILY_XFER_HISTORY_PERIOD) return;
|
||||
last_time = gstate.now;
|
||||
|
||||
FILE* f = fopen(TEMP_FILE_NAME, "r");
|
||||
FILE* f = fopen(TEMP_FILE_NAME, "w");
|
||||
fprintf(f, "<daily_xfers>\n");
|
||||
for (unsigned int i=0; i<daily_xfers.size(); i++) {
|
||||
DAILY_XFER& dx = daily_xfers[i];
|
||||
|
|
Loading…
Reference in New Issue