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

fixing pseudo module System::Time

parent 8f967a9a
No related branches found
No related tags found
No related merge requests found
......@@ -368,9 +368,11 @@ sub service {
} elsif($req =~ /^\/([^\/]+)\/(.+)\?plain$/) {
if($1 eq "System::Time" && $2 eq "now") {
my $info = {
name => 'now',
type => 'i',
value => time(),
metric => {
name => 'now',
type => 'i',
value => time(),
}
};
my $response = plain_info($1,$2,$info);
$client->print(http_header(200, length($response), 'text/plain', $snip));
......@@ -388,9 +390,11 @@ sub service {
} elsif($req =~ /^\/([^\/]+)\/(.+)$/) {
if($1 eq "System::Time" && $2 eq "now") {
my $info = {
name => 'now',
type => 'i',
value => time(),
metric => {
name => 'now',
type => 'i',
value => time(),
}
};
my $response = qq^<?xml version="1.0" encoding="UTF-8"?>\n^;
$response .= qq^<?xml-stylesheet type="text/xsl" href="/resmon.xsl"?>^;
......
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