aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcd4linux.c3
-rw-r--r--widget_bar.c17
2 files changed, 9 insertions, 11 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index a506401..fc16fb3 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -60,7 +60,8 @@
#define PIDFILE "/var/run/lcd4linux.pid"
static char *release = "LCD4Linux " VERSION "-" SVN_VERSION;
-static char *copyright = "Copyright (C) 2005, 2006, 2007, 2008 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>";
+static char *copyright =
+ "Copyright (C) 2005, 2006, 2007, 2008 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>";
static char **my_argv;
extern char *output;
diff --git a/widget_bar.c b/widget_bar.c
index 1b69e04..87dde85 100644
--- a/widget_bar.c
+++ b/widget_bar.c
@@ -71,40 +71,37 @@ void widget_bar_update(void *Self)
/* minimum: if expression is empty, do auto-scaling */
if (property_valid(&Bar->expr_min)) {
- if (0 != property_eval(&Bar->expr_min)) {
- info("widget bar %s: Property min changed to %G", W->name, P2N(&Bar->expr_min));
- }
+ property_eval(&Bar->expr_min);
min = P2N(&Bar->expr_min);
} else {
min = Bar->min;
if (val1 < min) {
min = val1;
- info("widget bar %s: new min value %G", W->name, min);
}
if (val2 < min) {
min = val2;
- info("widget bar %s: new min value %G", W->name, min);
}
}
/* maximum: if expression is empty, do auto-scaling */
if (property_valid(&Bar->expr_max)) {
- if (0 != property_eval(&Bar->expr_max)) {
- info("widget bar %s: Property max changed to %G", W->name, P2N(&Bar->expr_max));
- }
+ property_eval(&Bar->expr_max);
max = P2N(&Bar->expr_max);
} else {
max = Bar->max;
if (val1 > max) {
max = val1;
- info("widget bar %s: new max value %G", W->name, max);
}
if (val2 > max) {
max = val2;
- info("widget bar %s: new max value %G", W->name, max);
}
}
+ /* debugging */
+ if (Bar->min != min || Bar->max != max) {
+ debug("Bar '%s': new scale %G - %G", W->name, min, max);
+ }
+
/* calculate bar values */
Bar->min = min;
Bar->max = max;
ass='logsubject'>update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 Data updated according with https://portalbsd.com.br/. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 There are several entries that used to be at Lyngsat. Several of them were merged with other entries. On others, there's no TV signal anymore. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 Those are are new satellite descriptions that didn't use to exist on Lyngsat. Add them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 Those two satellites have two names. Use Just one of them. While here, update their frequencies from Lyngsat. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>