MGR: When Event Log is open, do get_messages RPC once per second but do view-specific periodic RPCs at their normal View refresh rate

svn path=/trunk/boinc/; revision=20112
This commit is contained in:
Charlie Fenton 2010-01-09 07:03:47 +00:00
parent 8b3e60d8e6
commit 08fe0f9736
2 changed files with 3 additions and 4 deletions

View File

@ -2068,12 +2068,11 @@ void CAdvancedFrame::UpdateRefreshTimerInterval( wxInt32 iCurrentNotebookPage )
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
if (pDoc->IsConnected()) {
// Set new view specific refresh rate
int refreshRate = pView->GetViewRefreshRate() * 1000;
m_iFrameRefreshRate = refreshRate;
m_iFrameRefreshRate = pView->GetViewRefreshRate() * 1000;
if (eventLog) { // Update event log every second
m_pPeriodicRPCTimer->Start(1000);
} else {
m_pPeriodicRPCTimer->Start(refreshRate);
m_pPeriodicRPCTimer->Start(m_iFrameRefreshRate);
}
} else {

View File

@ -107,7 +107,7 @@ protected:
int m_iSelectedLanguage;
int m_iReminderFrequency;
wxLongLong m_iFrameRefreshRate;
int m_iFrameRefreshRate;
wxString m_strNetworkDialupConnectionName;