Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
462 totalProcessed_(0) | 462 totalProcessed_(0) |
463 { | 463 { |
464 assert(PRIORITY_HIGH < 0 && | 464 assert(PRIORITY_HIGH < 0 && |
465 PRIORITY_LOW > 0); | 465 PRIORITY_LOW > 0); |
466 | 466 |
467 if (maxLowPriority <= 0) | 467 if (maxLowPriority == 0) |
468 { | 468 { |
469 // There must be at least 1 lane available to deal with low-priority commands | 469 // There must be at least 1 lane available to deal with low-priority commands |
470 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 470 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |
471 } | 471 } |
472 } | 472 } |