mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
sysprof: fix gte boundary for binary search to slice
This commit is contained in:
@ -281,9 +281,8 @@ binary_search_gte (GListModel *model,
|
|||||||
last = g_list_model_get_item (model, hi);
|
last = g_list_model_get_item (model, hi);
|
||||||
|
|
||||||
if (value > sysprof_document_frame_get_time (first))
|
if (value > sysprof_document_frame_get_time (first))
|
||||||
return lo;
|
return lo + 1;
|
||||||
|
else if (value < sysprof_document_frame_get_time (last))
|
||||||
if (value < sysprof_document_frame_get_time (last))
|
|
||||||
return hi - 1;
|
return hi - 1;
|
||||||
|
|
||||||
return GTK_INVALID_LIST_POSITION;
|
return GTK_INVALID_LIST_POSITION;
|
||||||
|
|||||||
Reference in New Issue
Block a user