Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/OracleScheduler.cpp @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/OracleScheduler.cpp Mon Sep 21 14:50:26 2020 +0200 +++ b/OrthancStone/Sources/Loaders/OracleScheduler.cpp Mon Sep 21 17:46:39 2020 +0200 @@ -464,7 +464,7 @@ assert(PRIORITY_HIGH < 0 && PRIORITY_LOW > 0); - if (maxLowPriority <= 0) + if (maxLowPriority == 0) { // There must be at least 1 lane available to deal with low-priority commands throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);