diff options
-rw-r--r-- | trace-view-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-view-store.c b/trace-view-store.c index 9e36493..7361722 100644 --- a/trace-view-store.c +++ b/trace-view-store.c | |||
@@ -1186,7 +1186,7 @@ search_for_record_by_timestamp(TraceViewStore *store, guint64 ts) | |||
1186 | return store->rows[store->visible_rows-1]; | 1186 | return store->rows[store->visible_rows-1]; |
1187 | 1187 | ||
1188 | key.timestamp = ts; | 1188 | key.timestamp = ts; |
1189 | prec = bsearch(&key, store->rows, store->visible_rows - 2, | 1189 | prec = bsearch(&key, store->rows, store->visible_rows - 1, |
1190 | sizeof(store->rows[0]), rows_ts_cmp); | 1190 | sizeof(store->rows[0]), rows_ts_cmp); |
1191 | 1191 | ||
1192 | g_assert(prec != NULL); | 1192 | g_assert(prec != NULL); |