mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 01:42:26 +00:00
Merge pull request #2017 from balena-io/modify-undervoltage-field
Modify undervoltage status display in device command
This commit is contained in:
commit
a0380848a0
@ -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…
x
Reference in New Issue
Block a user