RunCommand: Return metrics as a float

Apparently, DBIx::Class doesn't handle columns with type 'double
precision' properly.
This commit is contained in:
Eelco Dolstra 2018-08-02 12:31:28 +02:00
parent 6db2cbf094
commit e122d3bef3
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -97,7 +97,7 @@ sub buildFinished {
my $j = { my $j = {
name => $metric->name, name => $metric->name,
unit => $metric->unit, unit => $metric->unit,
value => $metric->value, value => 0 + $metric->value,
}; };
push @{$json->{metrics}}, $j; push @{$json->{metrics}}, $j;
} }