Skip to content

Commit

Permalink
handle both svg and png
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrown committed Jan 31, 2022
1 parent 9e8df72 commit faf0e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ my $time = scalar(gmtime());
my $THISHOST = $ENV{THISHOST};
my $FREQ = $ENV{FREQ};

my @remotes = glob("remote-statistics.*.svg");
my @remotes = glob("remote-statistics.*.{svg,png}");
my $ALL_REMOTES = "";
my $ALL_REMOTES_WITH_LINK = "";
foreach my $r (@remotes) {
my $remote = $r;
$remote =~ s/^remote-statistics\.//;
$remote =~ s/\.svg$//;
$remote =~ s/\.(svg|png)$//;
my $key = $remote;
$key =~ s/_/:/g;
my $desc = $titles{"statistics.$key"} || $key;
Expand Down

0 comments on commit faf0e3e

Please sign in to comment.