crismc/homeassistant_addons

[Bug]: CPU load data does not populate. It's showing 0.000.00%

Closed this issue · 1 comments

Requirements

  • I have updated I2C_OLED to the latest available version
  • I did a search to see if there is a similar issue.

Current Behavior

CPU load data does not populate. It's showing 0.000.00%

Expected Behavior

CPU load is expected to show the current CPU load, which isnt 0.000.00%

Steps To Reproduce

  1. Run the CPU screen on any distribution
  2. CPU screen shows 0.000.00%

Context

YAML state

Environment

- Browser:
- HA Version:
- I2C_OLED: 1.0.3

Anything else?

No response

Command being run to obtain CPU load is:
top -bn1 | grep load | awk '{printf "%.2f", $(NF-2)}'

This is a typo, and should be:
top -bn1 | grep Load | awk '{printf "%.2f", $(NF-2)}'