Skip to content

Commit

Permalink
fixing sqlite events
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Oct 25, 2024
1 parent 9ee6b00 commit 9643dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/umpire/event/sqlite_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void sqlite_database::insert(const allocate_resource& e)
R"(,"tags":{"replay":"true"})"
R"(,"timestamp":%lld})"
"'));",
e.size, e.ref, e.ptr, e.res,
e.size, e.ref, e.ptr, e.res.c_str(),
static_cast<long long>(
std::chrono::time_point_cast<std::chrono::nanoseconds>(e.timestamp).time_since_epoch().count()));

Expand Down Expand Up @@ -147,7 +147,7 @@ void sqlite_database::insert(const deallocate_resource& e)
R"(,"tags":{"replay":"true"})"
R"(,"timestamp":%lld})"
"'));",
e.ref, e.ptr, e.res,
e.ref, e.ptr, e.res.c_str(),
static_cast<long long>(
std::chrono::time_point_cast<std::chrono::nanoseconds>(e.timestamp).time_since_epoch().count()));

Expand Down

0 comments on commit 9643dd8

Please sign in to comment.