Skip to content

Commit

Permalink
[backend] fix typo in publish event generation
Browse files Browse the repository at this point in the history
Because of the typo the event generation time was missing, leading
to the publish statistics always having a wait time of zero.
  • Loading branch information
mlschroe committed Jan 19, 2021
1 parent 74fc00a commit 9491a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSSched/EventSource/Directory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 9491a4d

Please sign in to comment.