mirror of https://github.com/BOINC/boinc.git
- 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:
parent
9a5d664d59
commit
030ee981b6
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue