mirror of https://github.com/PentHertz/srsLTE.git
Define iszero in csv_stdout
This commit is contained in:
parent
5a2a435710
commit
8414b2c2c9
|
@ -65,6 +65,12 @@ void metrics_stdout::toggle_print(bool b)
|
||||||
do_print = 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)
|
void metrics_stdout::set_metrics(const enb_metrics_t& metrics, const uint32_t period_usec)
|
||||||
{
|
{
|
||||||
if (!do_print || enb == nullptr) {
|
if (!do_print || enb == nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue