mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
libsysprof-analyze: ignore inf/-inf values in xy series
This commit is contained in:
@ -138,9 +138,12 @@ sysprof_xy_series_add (SysprofXYSeries *self,
|
|||||||
if (y < self->min_y || y > self->max_y)
|
if (y < self->min_y || y > self->max_y)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
value.index = index;
|
||||||
value.x = (x - self->min_x) / self->x_distance;
|
value.x = (x - self->min_x) / self->x_distance;
|
||||||
value.y = (y - self->min_y) / self->y_distance;
|
value.y = (y - self->min_y) / self->y_distance;
|
||||||
value.index = index;
|
|
||||||
|
if (isinf (value.x) || isinf (value.y))
|
||||||
|
return;
|
||||||
|
|
||||||
g_array_append_val (self->values, value);
|
g_array_append_val (self->values, value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user