summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2021-02-18 13:42:13 +0000
committerAlastair Poole <netstar@gmail.com>2021-02-18 13:42:13 +0000
commit035ded650811aa96a0f0e3d4ed81f0f16e5c9793 (patch)
tree3230ceead81b5498b959cdf1c03cb4b82c244199
parent510af8f0a1a0f56fbccd19ac3b08ac8b7ffa5103 (diff)
mod: remove function call and tool.
-rw-r--r--images/a.pl14
-rw-r--r--src/e_mod_main.c2
2 files changed, 1 insertions, 15 deletions
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 @@
1#!/usr/bin/perl
2
3sub main()
4{
5 opendir(my $dir, '.');
6 while (readdir $dir) {
7 if ($_ =~ m{.*\.png}) {
8print "FORECASTS_ICON(\"$_\", 10, 10, 110, 110, 1.0);\n";
9}
10 }
11 closedir($dir);
12}
13
14main();
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)
798 snprintf(inst->forecast[idx].code, sizeof(inst->condition.code), "%s", code); 798 snprintf(inst->forecast[idx].code, sizeof(inst->condition.code), "%s", code);
799 } 799 }
800 800
801 days_prev = _epoch_days(tm_data); 801 days_prev = days;
802 } 802 }
803 803
804 json_object_put(o_root); 804 json_object_put(o_root);