1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:17:46 +00:00

ProcessManager+top: Rename "linear" size to "virtual" size.

I originally called it "linear" because that's how the Intel manual names
virtual addresses in many cases. I'm ready to accept that most people know
this as "virtual" so let's just call it that.
This commit is contained in:
Andreas Kling 2019-06-07 12:44:29 +02:00
parent 54448b5d24
commit 0ed89440f1
5 changed files with 27 additions and 27 deletions

View file

@ -17,8 +17,8 @@ struct Process {
String state;
String user;
String priority;
unsigned linear;
unsigned committed;
unsigned virtual_size;
unsigned physical_size;
unsigned nsched_since_prev;
unsigned cpu_percent;
unsigned cpu_percent_decimal;
@ -61,9 +61,9 @@ static Snapshot get_snapshot()
process.priority = parts[16];
process.state = parts[7];
process.name = parts[11];
process.linear = parts[12].to_uint(ok);
process.virtual_size = parts[12].to_uint(ok);
ASSERT(ok);
process.committed = parts[13].to_uint(ok);
process.physical_size = parts[13].to_uint(ok);
ASSERT(ok);
snapshot.map.set(pid, move(process));
}
@ -93,8 +93,8 @@ int main(int, char**)
"PRI",
"USER",
"STATE",
"LINEAR",
"COMMIT",
"VIRT",
"PHYS",
"%CPU",
"NAME");
for (auto& it : current.map) {
@ -123,8 +123,8 @@ int main(int, char**)
process->priority[0],
process->user.characters(),
process->state.characters(),
process->linear / 1024,
process->committed / 1024,
process->virtual_size / 1024,
process->physical_size / 1024,
process->cpu_percent,
process->cpu_percent_decimal,
process->name.characters());