From 0e21bc59a32a1e53191d32de5b7c23c04bdf3d0c Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 17 Mar 2014 17:23:19 +0100 Subject: [PATCH] Refs #5094 --- centreon-plugins/os/linux/local/mode/filesdate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/os/linux/local/mode/filesdate.pm b/centreon-plugins/os/linux/local/mode/filesdate.pm index 6a911e899..649a2661c 100644 --- a/centreon-plugins/os/linux/local/mode/filesdate.pm +++ b/centreon-plugins/os/linux/local/mode/filesdate.pm @@ -132,10 +132,10 @@ sub run { my $exit_code = $self->{perfdata}->threshold_check(value => $diff_time, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); - $self->{output}->output_add(long_msg => sprintf("%s: %s seconds (time: %s)", $name, $diff_time, localtime($time))); + $self->{output}->output_add(long_msg => sprintf("%s: %s seconds (time: %s)", $name, $diff_time, scalar(localtime($time)))); if (!$self->{output}->is_status(litteral => 1, value => $exit_code, compare => 'ok')) { $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("%s: %s seconds (time: %s)", $name, $diff_time, localtime($time))); + short_msg => sprintf("%s: %s seconds (time: %s)", $name, $diff_time, scalar(localtime($time)))); } $self->{output}->perfdata_add(label => $name, unit => 's', value => $diff_time,