projects
/
psensor-pkg-ubuntu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'upstream/1.0.2'
[psensor-pkg-ubuntu.git]
/
src
/
ui_notify.c
diff --git
a/src/ui_notify.c
b/src/ui_notify.c
index
7e7217d
..
6361f06
100644
(file)
--- a/
src/ui_notify.c
+++ b/
src/ui_notify.c
@@
-40,7
+40,7
@@
void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
char *body, *svalue;
const char *summary;
NotifyNotification *notif;
char *body, *svalue;
const char *summary;
NotifyNotification *notif;
- unsigned int use_cel
c
ius;
+ unsigned int use_cel
s
ius;
log_debug("last_notification %d", last_notification_tv.tv_sec);
log_debug("last_notification %d", last_notification_tv.tv_sec);
@@
-59,15
+59,15
@@
void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
notify_init("psensor");
if (notify_is_initted() == TRUE) {
notify_init("psensor");
if (notify_is_initted() == TRUE) {
- if (ui->config->temperature_unit == CEL
C
IUS)
- use_cel
c
ius = 1;
+ if (ui->config->temperature_unit == CEL
S
IUS)
+ use_cel
s
ius = 1;
else
else
- use_cel
c
ius = 0;
+ use_cel
s
ius = 0;
svalue = psensor_measure_to_str
(psensor_get_current_measure(sensor),
sensor->type,
svalue = psensor_measure_to_str
(psensor_get_current_measure(sensor),
sensor->type,
- use_cel
c
ius);
+ use_cel
s
ius);
body = malloc(strlen(sensor->name) + 3 + strlen(svalue) + 1);
sprintf(body, "%s : %s", sensor->name, svalue);
body = malloc(strlen(sensor->name) + 3 + strlen(svalue) + 1);
sprintf(body, "%s : %s", sensor->name, svalue);