Skip to content
Snippets Groups Projects
Commit 378369cc authored by Sergey Joseph Ivanov's avatar Sergey Joseph Ivanov
Browse files

next fix of the same

parent 48ede473
No related branches found
No related tags found
No related merge requests found
...@@ -369,9 +369,7 @@ sub service { ...@@ -369,9 +369,7 @@ sub service {
if($1 eq "System::Time" && $2 eq "now") { if($1 eq "System::Time" && $2 eq "now") {
my $info = { my $info = {
metric => { metric => {
name => 'now', now => [ time(), 'L' ],
type => 'i',
value => time(),
} }
}; };
my $response = plain_info($1,$2,$info); my $response = plain_info($1,$2,$info);
...@@ -391,9 +389,7 @@ sub service { ...@@ -391,9 +389,7 @@ sub service {
if($1 eq "System::Time" && $2 eq "now") { if($1 eq "System::Time" && $2 eq "now") {
my $info = { my $info = {
metric => { metric => {
name => 'now', now => [ time(), 'L'],
type => 'i',
value => time(),
} }
}; };
my $response = qq^<?xml version="1.0" encoding="UTF-8"?>\n^; my $response = qq^<?xml version="1.0" encoding="UTF-8"?>\n^;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment