Skip to content

Commit

Permalink
[backend] report starttime in serverstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed May 11, 2016
1 parent cb6d1fa commit 764d6d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/BSStdServer.pm
Expand Up @@ -158,7 +158,11 @@ sub serverstatus {
};
$res[-1]->{'group'} = $s->{'group'} if $s->{'group'};
}
return ({'job' => \@res}, $BSXML::serverstatus);
my $serverstatus = {
'job' => \@res,
'starttime' => $BSServer::request->{'server'}->{'starttime'},
};
return ($serverstatus, $BSXML::serverstatus);
}

sub isrunning {
Expand Down
1 change: 1 addition & 0 deletions src/backend/BSXML.pm
Expand Up @@ -915,6 +915,7 @@ our $ajaxstatus = [

our $serverstatus = [
'serverstatus' =>
'starttime',
[[ 'job' =>
'id',
'starttime',
Expand Down

0 comments on commit 764d6d4

Please sign in to comment.