mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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);
|
||||
|
||||
if (value > sysprof_document_frame_get_time (first))
|
||||
return lo;
|
||||
|
||||
if (value < sysprof_document_frame_get_time (last))
|
||||
return lo + 1;
|
||||
else if (value < sysprof_document_frame_get_time (last))
|
||||
return hi - 1;
|
||||
|
||||
return GTK_INVALID_LIST_POSITION;
|
||||
|
||||
Reference in New Issue
Block a user