mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=15272
This commit is contained in:
parent
640f0d85c9
commit
9a390c235d
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue