Nit, prefer boolean columns to not use 'is_'

This commit is contained in:
Teddy Reed 2015-03-17 15:21:37 -07:00
parent fa6619286c
commit 09790478b3
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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);
}
}