tools: resource-monitor: Keep the alignment of resource attribute name 56/279856/1 accepted/tizen/unified/20220818.230237 submit/tizen/20220818.160813
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 18 Aug 2022 09:39:51 +0000 (18:39 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 18 Aug 2022 09:39:51 +0000 (18:39 +0900)
commit9378b6a79949f787f437a5abff25d5747ee06e1b
tree22a5461a000cbe1317bdb292e0e8617d44605f5b
parentd411572f8b57afe7887119f99a3fe8620715803e
tools: resource-monitor: Keep the alignment of resource attribute name

commit f59279ad7f63 ("resource: Change bytes unit attributes to kilo-bytes")
changed the attribute name of both PROCESS_GROUP_ATTR_DISK_READ_PER_SEC
and PROCESS_GROUP_ATTR_DISK_WRITE_PER_SEC. So that break the alignment
when print the resource attribute name by resource-monitor cli tool.

Extend the width length for resource attribute name to keep the printing
alignement.

- Before change:
 7: 2|         PROCESS_GROUP_ATTR_CPU_UTIL |                                     0.27 | %     | Process-group CPU utilization
 7: 3| PROCESS_GROUP_ATTR_DISK_READ_PER_SEC |                                     0.00 | kB/s  | Process-group disk read per second
 7: 4| PROCESS_GROUP_ATTR_DISK_WRITE_PER_SEC |                                     0.00 | kB/s  | Process-group disk write per second
 7: 5|         PROCESS_GROUP_ATTR_MEM_VIRT |                                132923188 | kB    | Process-group VIRT memory size

- After change:
 7: 2|              PROCESS_GROUP_ATTR_CPU_UTIL |                                     0.21 | %     | Process-group CPU utilization
 7: 3|     PROCESS_GROUP_ATTR_DISK_READ_PER_SEC |                                     0.00 | kB/s  | Process-group disk read per second
 7: 4|    PROCESS_GROUP_ATTR_DISK_WRITE_PER_SEC |                                     0.00 | kB/s  | Process-group disk write per second
 7: 5|              PROCESS_GROUP_ATTR_MEM_VIRT |                                135495517 | kB    | Process-group VIRT memory size

Change-Id: I62a937f1edb9c85979cd6f309b12e94256dbeaed
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
tools/resource-monitor/resource-monitor.c