Skip to content

Commit

Permalink
Use better format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed May 24, 2024
1 parent d1d7dd7 commit 9b1f3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zm_eventstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ constexpr Milliseconds EventStream::STREAM_PAUSE_WAIT;

bool EventStream::loadInitialEventData(int monitor_id, SystemTimePoint event_time) {
std::string sql = stringtf("SELECT `Id` FROM `Events` WHERE "
"`MonitorId` = %d AND unix_timestamp(`EndDateTime`) > %ld "
"`MonitorId` = %d AND unix_timestamp(`EndDateTime`) > %jd "
"ORDER BY `Id` ASC LIMIT 1", monitor_id, std::chrono::system_clock::to_time_t(event_time));

MYSQL_RES *result = zmDbFetch(sql);
Expand Down

0 comments on commit 9b1f3fd

Please sign in to comment.