Permalink
Browse files

Add unit in perfdata

  • Loading branch information...
1 parent 811b5b9 commit 9012567fa6cecf16b60ffe2ad496e7b1c288892d @titilambert titilambert committed Jan 31, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 Webinject/lib/Webinject.pm
@@ -1682,21 +1682,21 @@ sub _finaltasks {
$crit = $self->{'config'}->{globaltimeout};
}
my $lastid = 0;
- my $perfdata = '|time='.$self->{'result'}->{'totalruntime'}.';0;'.$crit.';0;0';
+ my $perfdata = '|time='.$self->{'result'}->{'totalruntime'}.'s;0;'.$crit.';0;0';
for my $file (@{$self->{'result'}->{'files'}}) {
for my $case (@{$file->{'cases'}}) {
my $warn = $case->{'warning'} || 0;
my $crit = $case->{'critical'} || 0;
my $label = $case->{'label'} || 'case'.$case->{'id'};
- $perfdata .= ' '.$label.'='.$case->{'latency'}.';'.$warn.';'.$crit.';0;0';
+ $perfdata .= ' '.$label.'='.$case->{'latency'}.'s;'.$warn.';'.$crit.';0;0';
$lastid = $case->{'id'};
}
}
# report performance data for missed cases too
for my $nr (1..($self->{'result'}->{'casecount'} - $self->{'result'}->{'totalruncount'})) {
$lastid++;
my $label = 'case'.$lastid;
- $perfdata .= ' '.$label.'=0;0;0;0;0';
+ $perfdata .= ' '.$label.'=0s;0;0;0;0';
}
my($rc,$message);

0 comments on commit 9012567

Please sign in to comment.