updated webgui to run with Config::JSON 2.04

This commit is contained in:
JT Smith 2008-01-25 05:10:33 +00:00
parent fb434a8b3a
commit 34fd8c9245
20 changed files with 56 additions and 51 deletions

View file

@ -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} };