From 9643dd89b3ae11e7b8a5b3ad3e39d9db40846a28 Mon Sep 17 00:00:00 2001 From: Kristi Belcher Date: Fri, 25 Oct 2024 08:38:19 -0700 Subject: [PATCH] fixing sqlite events --- src/umpire/event/sqlite_database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/umpire/event/sqlite_database.cpp b/src/umpire/event/sqlite_database.cpp index ea9045170..92b6cf074 100644 --- a/src/umpire/event/sqlite_database.cpp +++ b/src/umpire/event/sqlite_database.cpp @@ -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( std::chrono::time_point_cast(e.timestamp).time_since_epoch().count())); @@ -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( std::chrono::time_point_cast(e.timestamp).time_since_epoch().count()));