Define iszero in csv_stdout

master
Ismael Gomez 4 years ago
parent 5a2a435710
commit 8414b2c2c9

@ -65,6 +65,12 @@ void metrics_stdout::toggle_print(bool b)
do_print = b;
}
// Define iszero() here since it's not defined in some platforms
static bool iszero(float x)
{
return fabsf(x) < 2 * DBL_EPSILON;
}
void metrics_stdout::set_metrics(const enb_metrics_t& metrics, const uint32_t period_usec)
{
if (!do_print || enb == nullptr) {

Loading…
Cancel
Save