fix for proxy core

This commit is contained in:
mwells 2013-11-03 22:43:44 -07:00
parent e4cce243de
commit c13cce9d72

View File

@ -1055,7 +1055,10 @@ void processSleepWrapper ( int fd , void *state ) {
if ( ! isClockInSync() && ! g_hostdb.m_myHost->m_isProxy ) return;
// get time the day started
long now = getTimeGlobal();
long now;
if ( g_hostdb.m_myHost->m_isProxy ) now = getTimeLocal();
else now = getTimeGlobal();
// set this for the first time
if ( g_process.m_lastSaveTime == 0 )
g_process.m_lastSaveTime = now;