netstar pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/forecasts.git/commit/?id=035ded650811aa96a0f0e3d4ed81f0f16e5c9793

commit 035ded650811aa96a0f0e3d4ed81f0f16e5c9793
Author: Alastair Poole <[email protected]>
Date:   Thu Feb 18 13:42:13 2021 +0000

    mod: remove function call and tool.
---
 images/a.pl      | 14 --------------
 src/e_mod_main.c |  2 +-
 2 files changed, 1 insertion(+), 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 @@
-#!/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);

-- 


Reply via email to