Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add unit in perfdata

  • Loading branch information...
commit 9012567fa6cecf16b60ffe2ad496e7b1c288892d 1 parent 811b5b9
Thibault Cohen titilambert authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Webinject/lib/Webinject.pm
6 Webinject/lib/Webinject.pm
View
@@ -1682,13 +1682,13 @@ 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'};
}
}
@@ -1696,7 +1696,7 @@ sub _finaltasks {
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);
Please sign in to comment.
Something went wrong with that request. Please try again.