From 658f8702655cb2f7cfb751b36401453d6efc0b99 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 26 Jan 2018 15:18:06 +0100 Subject: [PATCH] Minor fixes PluginTools --- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm index a18c505f65..1714d45477 100644 --- a/pandora_server/lib/PandoraFMS/PluginTools.pm +++ b/pandora_server/lib/PandoraFMS/PluginTools.pm @@ -52,6 +52,7 @@ our @EXPORT = qw( get_unit get_unix_time get_sys_environment + get_current_utime_milis getCurrentUTimeMilis head in_array @@ -94,6 +95,7 @@ sub get_lib_version { ################################################################################ # Get current time (milis) ################################################################################ +sub get_current_utime_milis { return getCurrentUTimeMilis(); } sub getCurrentUTimeMilis { #return trim (`date +"%s%3N"`); # returns 1449681679712 return floor(time*1000);