Skip to content

Commit 4af1876

Browse files
committed
Fix initialize issue
1 parent 092dad5 commit 4af1876

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

orchagent/orchdaemon.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ event_handle_t g_events_handle;
6868
#define DEFAULT_MAX_BULK_SIZE 1000
6969
size_t gMaxBulkSize = DEFAULT_MAX_BULK_SIZE;
7070

71+
std::chrono::time_point<std::chrono::high_resolution_clock> OrchDaemon::m_lastHeartBeat = std::chrono::high_resolution_clock::now();
72+
7173
OrchDaemon::OrchDaemon(DBConnector *applDb, DBConnector *configDb, DBConnector *stateDb, DBConnector *chassisAppDb) :
7274
m_applDb(applDb),
7375
m_configDb(configDb),

orchagent/orchdaemon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class OrchDaemon
9191
std::vector<Orch *> m_orchList;
9292
Select *m_select;
9393

94-
static std::chrono::time_point<std::chrono::high_resolution_clock> m_lastHeartBeat = std::chrono::high_resolution_clock::now();
94+
static std::chrono::time_point<std::chrono::high_resolution_clock> m_lastHeartBeat;
9595

9696
void flush();
9797

0 commit comments

Comments
 (0)