mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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)
|
||||
return;
|
||||
|
||||
value.index = index;
|
||||
value.x = (x - self->min_x) / self->x_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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user