diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 53c7be3dbe..a8d3c707fc 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -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 { diff --git a/clientgui/BOINCBaseFrame.h b/clientgui/BOINCBaseFrame.h index 9404b86c35..b96f8cd343 100644 --- a/clientgui/BOINCBaseFrame.h +++ b/clientgui/BOINCBaseFrame.h @@ -107,7 +107,7 @@ protected: int m_iSelectedLanguage; int m_iReminderFrequency; - wxLongLong m_iFrameRefreshRate; + int m_iFrameRefreshRate; wxString m_strNetworkDialupConnectionName;