From 9491a4d3c60fcda4e58c152acee30f00027d9b73 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 19 Jan 2021 11:29:05 +0100 Subject: [PATCH] [backend] fix typo in publish event generation Because of the typo the event generation time was missing, leading to the publish statistics always having a wait time of zero. --- src/backend/BSSched/EventSource/Directory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/BSSched/EventSource/Directory.pm b/src/backend/BSSched/EventSource/Directory.pm index 509349c2826..c4283114209 100644 --- a/src/backend/BSSched/EventSource/Directory.pm +++ b/src/backend/BSSched/EventSource/Directory.pm @@ -90,7 +90,7 @@ sub sendevent { my $eventdir = $gctx->{'eventdir'}; mkdir_p("$eventdir/$arch"); $evname = "$ev->{'type'}:::".Digest::MD5::md5_hex($evname) if length($evname) > 200; - if ($ev->{'type'} eq 'published') { + if ($ev->{'type'} eq 'publish') { my $oldev = readxml("$eventdir/$arch/$evname", $BSXML::event, 1) || {}; $ev->{'time'} = $oldev->{'time'} || time(); }