transcodeninja / livepeer-exporter

A Prometheus exporter for Livepeer orchestrator metrics. Fetches and exposes orchestrator metrics from various Livepeer endpoints for Prometheus to scrape.
https://hub.docker.com/r/rickstaa/livepeer-exporter
MIT License
0 stars 0 forks source link

fix: fix empty string parse bug #34

Closed rickstaa closed 12 months ago

rickstaa commented 12 months ago

This commit ensures that 0.0 is returned by the StringToFloat64 method when a empty sting is passed in. This was done since sometimes the API's return an empty string instead of 0.0.