diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-14 17:24:43 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-14 18:00:08 +0100 |
commit | 882c514d50dce5c05154d6881cf1e555c8523b32 (patch) | |
tree | 0a2d9f0901f494b36768971929b7c5a6b42fc53c /src/cgtop/cgtop.c | |
parent | cgtop: split out the main loop into a separate function (diff) | |
download | systemd-882c514d50dce5c05154d6881cf1e555c8523b32.tar.xz systemd-882c514d50dce5c05154d6881cf1e555c8523b32.zip |
cgtop: drop counterproductive bitfields
The variable after the bitfields has 8 byte alignment, so we weren't saving any
memory, but the code to serve the bitfields was more complicated.
Diffstat (limited to 'src/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 65d9941f7a..bb4f7a5ef0 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -36,10 +36,10 @@ typedef struct Group { char *path; - bool n_tasks_valid:1; - bool cpu_valid:1; - bool memory_valid:1; - bool io_valid:1; + bool n_tasks_valid; + bool cpu_valid; + bool memory_valid; + bool io_valid; uint64_t n_tasks; |