Skip to content

Just an adding #6

@plegrand1

Description

@plegrand1

I'm not a developper then may be what i done is wrong but i made this modifications

# XXX must be equal to number of CPU cores: '...{ printf("%-4s %-s\n", $9 / XXX, $NF); }...'
cpu_core=$(cat /proc/cpuinfo | grep -i "^processor" | wc -l)
top=$(top -o "%CPU" -bn 1 | head -n 14 | tail -n 7 | awk '{ printf("%-4s %-s\n", $9 / $cpu_core, $NF); }' | awk 1 ORS="\\\n")

and

echo "<span color='$text_muted'>CPU ($cpu_core)</span>\t$CPU% | iconName=utilities-system-monitor"

I dont know if it's good

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions