updated webgui to run with Config::JSON 2.04
This commit is contained in:
parent
fb434a8b3a
commit
34fd8c9245
20 changed files with 56 additions and 51 deletions
|
|
@ -97,7 +97,7 @@ sub www_spectreGetSiteData {
|
|||
}
|
||||
$siteData{cron} = \@schedules;
|
||||
}
|
||||
return JSON::objToJson(\%siteData,{autoconv=>0, skipinvalid=>1});
|
||||
return JSON::to_json(\%siteData);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -144,8 +144,8 @@ sub www_spectreStatus {
|
|||
}
|
||||
|
||||
my %data = (
|
||||
workflow => jsonToObj($workflowResult),
|
||||
cron => jsonToObj($cronResult),
|
||||
workflow => from_json($workflowResult),
|
||||
cron => from_json($cronResult),
|
||||
);
|
||||
|
||||
my $workflowCount = @{ $data{workflow}{Suspended} } + @{ $data{workflow}{Waiting} } + @{ $data{workflow}{Running} };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue