From dfe4be5f003d7130493c7e33b2349c01135938ca Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 5 Dec 2022 17:30:01 +0100 Subject: [PATCH] add dot to match for total donated amount --- notify.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify.pl b/notify.pl index 248577c..a984a7e 100755 --- a/notify.pl +++ b/notify.pl @@ -89,7 +89,7 @@ sub mailout { my $month = strftime("%m", localtime); my $response = HTTP::Tiny->new->get('https://openbsd.amsterdam/index.html'); - my $total_donated = $1 if $response->{'content'} =~ /([0-9,]+) donated to the OpenBSD/; + my $total_donated = $1 if $response->{'content'} =~ /([0-9,\.]+) donated to the OpenBSD/; my $total_vms = $1 if $response->{'content'} =~ /([0-9]+) VMs deployed/; $response = HTTP::Tiny->new->get('https://openbsd.amsterdam/servers.html'); my $total_hosts = () = $response->{'content'} =~ /(\>Server )/g;