This commit is contained in:
Mathieu Cinquin 2014-11-03 11:48:22 +01:00
parent 09956eaa29
commit 1e585d14c2
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ sub run {
my ($total_value, $total_unit) = $self->{perfdata}->change_bytes(value => $mem_total); my ($total_value, $total_unit) = $self->{perfdata}->change_bytes(value => $mem_total);
$self->{output}->output_add(severity => $exit, $self->{output}->output_add(severity => $exit,
short_msg => sprintf("Memory used : %s - size : %s - percent : " . $prct_used . " %", short_msg => sprintf("Memory used : %.2f $used_unit - size : %.2f $total_unit - percent : %.2f %%",
$used_value . " " . $used_unit, $total_value . " " . $total_unit)); $used_value, $total_value, $total_unit));
$self->{output}->perfdata_add(label => 'used', $self->{output}->perfdata_add(label => 'used',
value => sprintf("%.2f", $mem_used), value => sprintf("%.2f", $mem_used),