From: Jean-Philippe Orsini Date: Sat, 19 Apr 2014 09:24:46 +0000 (+0200) Subject: support of fahrenheit for the indicator label X-Git-Tag: v1.0.1~50 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=01515c2f46a2b0cc70c0ef54f49d16493a2b5ce2 support of fahrenheit for the indicator label --- diff --git a/src/ui_appindicator.c b/src/ui_appindicator.c index 29244b5..4b4f9d6 100644 --- a/src/ui_appindicator.c +++ b/src/ui_appindicator.c @@ -187,7 +187,8 @@ void ui_appindicator_update(struct ui_psensor *ui, unsigned int attention) label = NULL; while (*p) { if (config_is_appindicator_label_enabled((*p)->id)) { - str = psensor_current_value_to_str(*p, 1); + str = psensor_current_value_to_str + (*p, ui->config->temperature_unit == CELCIUS); if (label == NULL) { label = str; } else {