mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
fix for proxy core
This commit is contained in:
parent
e4cce243de
commit
c13cce9d72
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user