mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Nit, prefer boolean columns to not use 'is_'
This commit is contained in:
parent
fa6619286c
commit
09790478b3
@ -9,6 +9,6 @@ schema([
|
||||
Column("device", TEXT, "MA:MI Major/minor device ID"),
|
||||
Column("inode", INTEGER, "Mapped path inode, 0 means uninitialized (BSS)"),
|
||||
Column("path", TEXT, "Path to mapped file or mapped type"),
|
||||
Column("is_pseudo", INTEGER, "1 if path is a pseudo path, else 0"),
|
||||
Column("pseudo", INTEGER, "1 if path is a pseudo path, else 0"),
|
||||
])
|
||||
implementation("processes@genProcessMemoryMap")
|
||||
|
@ -128,7 +128,7 @@ void genProcessMap(const proc_t* proc_info, QueryData& results) {
|
||||
}
|
||||
|
||||
// BSS with name in pathname.
|
||||
r["is_pseudo"] = (fields[4] == "0" && r["path"].size() > 0) ? "1" : "0";
|
||||
r["pseudo"] = (fields[4] == "0" && r["path"].size() > 0) ? "1" : "0";
|
||||
results.push_back(r);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user