mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 01:25:20 +00:00
Fix pids column in docker_container_stats table (#6965)
Add missing string conversion to docker_container_stats table
This commit is contained in:
parent
d80bb56534
commit
0717ab79b7
@ -855,7 +855,7 @@ QueryData genContainerStats(QueryContext& context) {
|
||||
Row r;
|
||||
r["id"] = id;
|
||||
r["name"] = container.get<std::string>("name", "");
|
||||
r["pids"] = container.get<int>("pids_stats.current", 0);
|
||||
r["pids"] = INTEGER(container.get<int>("pids_stats.current", 0));
|
||||
const std::string& read = container.get<std::string>("read", "");
|
||||
long read_unix_time = getUnixTime(read, false);
|
||||
r["read"] = BIGINT(read_unix_time);
|
||||
|
Loading…
Reference in New Issue
Block a user