mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
Modify undervoltage status display in device command
Change-type: patch Signed-off-by: Scott Lowe <scott@balena.io>
This commit is contained in:
parent
8631e22686
commit
ffa8e245ba
@ -130,7 +130,12 @@ export default class DeviceCmd extends Command {
|
||||
|
||||
device.cpu_temp_c = device.cpu_temp;
|
||||
device.cpu_usage_percent = device.cpu_usage;
|
||||
device.undervoltage_detected = device.is_undervolted;
|
||||
|
||||
// Only show undervoltage status if true
|
||||
// API sends false even for devices which are not detecting this.
|
||||
if (device.is_undervolted) {
|
||||
device.undervoltage_detected = device.is_undervolted;
|
||||
}
|
||||
|
||||
if (
|
||||
device.memory_usage != null &&
|
||||
|
Loading…
Reference in New Issue
Block a user