Fixed bug in the construction of the name of the xml file

This commit is contained in:
manuel.montes 2018-09-07 08:36:06 +02:00
parent fb68f3f9b6
commit a721eadcbd
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ function createXMLData($agent, $agentModule, $time, $data) {
$data $data
); );
$file_name = $config["remote_config"] . "/" . io_safe_output($agent["alias"]) . "." . str_replace($time, " ", "_") . ".data"; $file_name = $config["remote_config"] . "/" . io_safe_output($agent["alias"]) . "." . strtotime($time) . ".data";
return (bool) @file_put_contents($file_name, $xml); return (bool) @file_put_contents($file_name, $xml);
} }