mirror of https://github.com/BOINC/boinc.git
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:
parent
8b3e60d8e6
commit
08fe0f9736
|
@ -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 {
|
||||
|
|
|
@ -107,7 +107,7 @@ protected:
|
|||
|
||||
int m_iSelectedLanguage;
|
||||
int m_iReminderFrequency;
|
||||
wxLongLong m_iFrameRefreshRate;
|
||||
int m_iFrameRefreshRate;
|
||||
|
||||
wxString m_strNetworkDialupConnectionName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue