From 035ded650811aa96a0f0e3d4ed81f0f16e5c9793 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Thu, 18 Feb 2021 13:42:13 +0000 Subject: [PATCH] mod: remove function call and tool. --- images/a.pl | 14 -------------- src/e_mod_main.c | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 images/a.pl diff --git a/images/a.pl b/images/a.pl deleted file mode 100644 index 7257b98..0000000 --- a/images/a.pl +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl - -sub main() -{ - opendir(my $dir, '.'); - while (readdir $dir) { - if ($_ =~ m{.*\.png}) { -print "FORECASTS_ICON(\"$_\", 10, 10, 110, 110, 1.0);\n"; -} - } - closedir($dir); -} - -main(); diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 9c0cf05..2afb91e 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -798,7 +798,7 @@ _forecasts_parse(void *data) snprintf(inst->forecast[idx].code, sizeof(inst->condition.code), "%s", code); } - days_prev = _epoch_days(tm_data); + days_prev = days; } json_object_put(o_root);