Skip to content

Commit

Permalink
#170 Fix: handle other selection types in comparator [173726948]
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <[email protected]>
  • Loading branch information
678098 authored Dec 11, 2023
1 parent 2b68c90 commit 5f65a2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/groups/mqb/mqbcmd/mqbcmd_humanprinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ struct SortPurgeQueueResultByBytesDesc {
bool operator()(const PurgeQueueResult& lhs,
const PurgeQueueResult& rhs) const
{
return (lhs.queue().numBytesPurged() > rhs.queue().numBytesPurged());
return (lhs.isQueueValue() ? lhs.queue().numBytesPurged() : 0) >
(rhs.isQueueValue() ? rhs.queue().numBytesPurged() : 0);
}
};

Expand Down

0 comments on commit 5f65a2a

Please sign in to comment.