mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-05 01:50:38 +01:00
dbus: show charge-threshold-* status as yes/no
Previously shown as a boolean integer and not properly aligned.
This commit is contained in:
parent
7d7bb84fde
commit
faa6d8a6b3
1 changed files with 2 additions and 2 deletions
|
|
@ -395,9 +395,9 @@ up_device_to_text (UpDevice *device)
|
|||
if (up_exported_device_get_charge_end_threshold (priv->proxy_device) > 0)
|
||||
g_string_append_printf (string, " charge-end-threshold: %d%%\n", up_exported_device_get_charge_end_threshold (priv->proxy_device));
|
||||
if (up_exported_device_get_charge_threshold_enabled (priv->proxy_device))
|
||||
g_string_append_printf (string, " charge-threshold-enabled: %d\n", up_exported_device_get_charge_threshold_enabled (priv->proxy_device));
|
||||
g_string_append_printf (string, " charge-threshold-enabled: %s\n", up_device_bool_to_string (up_exported_device_get_charge_threshold_enabled (priv->proxy_device)));
|
||||
if (up_exported_device_get_charge_threshold_supported (priv->proxy_device))
|
||||
g_string_append_printf (string, " charge-threshold-supported: %d\n", up_exported_device_get_charge_threshold_supported (priv->proxy_device));
|
||||
g_string_append_printf (string, " charge-threshold-supported: %s\n", up_device_bool_to_string (up_exported_device_get_charge_threshold_supported (priv->proxy_device)));
|
||||
}
|
||||
if (kind == UP_DEVICE_KIND_LINE_POWER)
|
||||
g_string_append_printf (string, " online: %s\n", up_device_bool_to_string (up_exported_device_get_online (priv->proxy_device)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue