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

This commit is contained in:
Charlie Fenton 2010-03-11 11:30:15 +00:00
parent 08af46829a
commit 30f93a42b4
2 changed files with 19 additions and 10 deletions

View File

@ -1812,3 +1812,11 @@ David 10 Mar 2010
credit_test.cpp
html/ops/
credit_test.php
Charlie 11 Mar 2010
- MGR: Fix a bug which caused unnecessary demand RPCs on some platforms:
set RPC time stamps to 1 rather than 0 in RefreshRPCs() so a not to
trigger initialization code.
clientgui/
MainDocument.cpp

View File

@ -777,37 +777,38 @@ int CMainDocument::SetNetworkRunMode(int iMode, int iTimeout) {
return iRetVal;
}
// Set last update time to (time_t)1 rather than (time_t)0, since
// we use 0 to indicate that this is the first time.
void CMainDocument::RefreshRPCs() {
m_dtCachedCCStatusTimestamp = wxDateTime((time_t)0);
m_dtCachedCCStatusTimestamp = wxDateTime((time_t)1);
// m_iGet_status_rpc_result = -1;
m_dtProjectsStatusTimestamp = wxDateTime((time_t)0);
m_dtProjectsStatusTimestamp = wxDateTime((time_t)1);
// m_iGet_project_status1_rpc_result = -1;
m_dtResultsTimestamp = wxDateTime((time_t)0);
m_dtResultsTimestamp = wxDateTime((time_t)1);
// m_iGet_results_rpc_result = -1;
m_dtFileTransfersTimestamp = wxDateTime((time_t)0);
m_dtFileTransfersTimestamp = wxDateTime((time_t)1);
// m_iGet_file_transfers_rpc_result = 0;
// m_iGet_messages_rpc_result = -1;
m_dtDiskUsageTimestamp = wxDateTime((time_t)0);
m_dtDiskUsageTimestamp = wxDateTime((time_t)1);
// m_iGet_dsk_usage_rpc_result = -1;
m_dtStatisticsStatusTimestamp = wxDateTime((time_t)0);
m_dtStatisticsStatusTimestamp = wxDateTime((time_t)1);
// m_iGet_statistics_rpc_result = -1;
m_dtCachedSimpleGUITimestamp = wxDateTime((time_t)0);
m_dtCachedSimpleGUITimestamp = wxDateTime((time_t)1);
// m_iGet_simple_gui2_rpc_result = -1;
m_dtCachedAcctMgrInfoTimestamp = wxDateTime((time_t)0);
m_dtCachedAcctMgrInfoTimestamp = wxDateTime((time_t)1);
m_iAcct_mgr_info_rpc_result = -1;
// m_iGet_state_rpc_result = -1;
m_dtLastFrameViewRefreshRPCTime = wxDateTime((time_t)0);
}