- MGR: Make sure get_cc_status is called only once a second.

Polling should be taken care of via MainDocument functions
        to make sure that RPCs calls do not become excessive.
        
    clientgui/
        AccountManagerPropertiesPage.cpp
        BOINCDialupManager.cpp
        ProjectPropertiesPage.cpp

svn path=/trunk/boinc/; revision=12790
This commit is contained in:
Rom Walton 2007-05-31 18:02:53 +00:00
parent 9a5d664d59
commit 030ee981b6
4 changed files with 13 additions and 3 deletions

View File

@ -5624,3 +5624,13 @@ Charlie 31 May 2007
lib/
boinc_cmd.C
Rom 31 May 2007
- MGR: Make sure get_cc_status is called only once a second.
Polling should be taken care of via MainDocument functions
to make sure that RPCs calls do not become excessive.
clientgui/
AccountManagerPropertiesPage.cpp
BOINCDialupManager.cpp
ProjectPropertiesPage.cpp

View File

@ -342,7 +342,7 @@ void CAccountManagerPropertiesPage::OnStateChange( CAccountManagerPropertiesPage
{
dtCurrentExecutionTime = wxDateTime::Now();
tsExecutionTime = dtCurrentExecutionTime - dtStartExecutionTime;
iReturnValue = pDoc->rpc.get_cc_status(status);
iReturnValue = pDoc->GetCoreClientStatus(status);
IncrementProgress(m_pProgressIndicator);
::wxMilliSleep(500);

View File

@ -122,7 +122,7 @@ void CBOINCDialUpManager::OnPoll() {
// successfully connected. IsNetworkAlive/IsOnline both report the
// success or failure of the dialup device to establish a connection
// to the outside world.
pDoc->rpc.get_cc_status(cc_status);
pDoc->GetCoreClientStatus(cc_status);
bIsOnline = (cc_status.network_status == NETWORK_STATUS_ONLINE);
bWantConnection = (cc_status.network_status == NETWORK_STATUS_WANT_CONNECTION);

View File

@ -475,7 +475,7 @@ void CProjectPropertiesPage::OnStateChange( CProjectPropertiesPageEvent& WXUNUSE
{
dtCurrentExecutionTime = wxDateTime::Now();
tsExecutionTime = dtCurrentExecutionTime - dtStartExecutionTime;
iReturnValue = pDoc->rpc.get_cc_status(status);
iReturnValue = pDoc->GetCoreClientStatus(status);
IncrementProgress(m_pProgressIndicator);
::wxMilliSleep(500);