diff options
author | lloyd <[email protected]> | 2010-09-03 18:33:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-03 18:33:13 +0000 |
commit | 0bdec08ee5330c862e04b4910ffef1ec2b29374f (patch) | |
tree | bf17bd4eed336c4bcc54dd1b13f4fd114a7c3e10 /src | |
parent | 0977c571c6010db632d25d1a595f91be1471db70 (diff) |
Fix comparison functor
Diffstat (limited to 'src')
-rw-r--r-- | src/entropy/unix_procs/es_unix.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entropy/unix_procs/es_unix.cpp b/src/entropy/unix_procs/es_unix.cpp index 8e1bb2cc8..5756f93dd 100644 --- a/src/entropy/unix_procs/es_unix.cpp +++ b/src/entropy/unix_procs/es_unix.cpp @@ -24,10 +24,10 @@ namespace { */ bool Unix_Program_Cmp(const Unix_Program& a, const Unix_Program& b) { - if(a.priority < b.priority) - return true; + if(a.priority == b.priority) + return (a.name_and_args < b.name_and_args); - return (a.name_and_args < b.name_and_args); + return (a.priority < b.priority); } } |