Skip to content

Commit

Permalink
Merge pull request #5 from crismc/bug/cpu_load_does_not_populate
Browse files Browse the repository at this point in the history
Bug/cpu load does not populate
  • Loading branch information
crismc authored Feb 4, 2023
2 parents e351874 + 5e081fc commit 8f620a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ One-Step Automated Install
----------------
Those who want to get started quickly and conveniently may install the RPI_I2C_OLED using the following command:
```
curl -sSL https://raw.githubusercontent.com/crismc/rpi_i2c_oled/v1.0.2/basic-install.sh | sudo bash
curl -sSL https://raw.githubusercontent.com/crismc/rpi_i2c_oled/v1.0.4/basic-install.sh | sudo bash
```

This will download the latest release, and install it as a service. Once run, you can control the ```oled``` service by the following:
Expand Down
2 changes: 1 addition & 1 deletion bin/Screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def get_temp(self):
return temp

def render(self):
cpu = Utils.shell_cmd("top -bn1 | grep load | awk '{printf \"%.2f\", $(NF-2)}'")
cpu = Utils.shell_cmd("top -bn1 | grep Load | awk '{printf \"%.2f\", $(NF-2)}'")
uptime = Utils.shell_cmd("uptime | grep -ohe 'up .*' | sed 's/,//g' | awk '{ print $2" "$3 }'")

# Check temapture unit and convert if required.
Expand Down

0 comments on commit 8f620a4

Please sign in to comment.