svn path=/trunk/boinc/; revision=15272

This commit is contained in:
David Anderson 2008-05-22 03:57:55 +00:00
parent 640f0d85c9
commit 9a390c235d
3 changed files with 8 additions and 4 deletions

View File

@ -25,6 +25,7 @@
#define _CONSOLE 1
#include "boinc_win.h"
#include "win_service.h"
#include "win_util.h"
extern HINSTANCE g_hClientLibraryDll;
static HANDLE g_hWin9xMonitorSystemThread = NULL;

View File

@ -253,7 +253,7 @@ void CViewResources::OnListRender( wxTimerEvent& WXUNUSED(event) ) {
// used by BOINC
double boinc_total = project_total + pDoc->disk_usage.d_boinc;
FormatDiskSpace(boinc_total, diskspace);
FormatDiskSpace(boinc_total, diskspace);
part.SetLabel(_("used by BOINC - ") + diskspace);
part.SetValue(boinc_total);
part.SetColour(wxColour(0,0,0));
@ -272,9 +272,10 @@ void CViewResources::OnListRender( wxTimerEvent& WXUNUSED(event) ) {
}
// free disk space
FormatDiskSpace(free-avail, diskspace);
double not_avail = free - avail;
FormatDiskSpace(not_avail, diskspace);
part.SetLabel(_("free, not available to BOINC - ") + diskspace);
part.SetValue(free-avail);
part.SetValue(not_avail);
part.SetColour(wxColour(238,238,238));
m_pieCtrlTotal->m_Series.Add(part);

View File

@ -26,7 +26,9 @@
#include "boinc_win.h"
#endif
#ifndef _WIN32
#ifdef _WIN32
#include "win_util.h"
#else
#include "config.h"
#include <cstdio>
#include <cstring>