cli: Don't show negative values

For none of the numeric properties a negative value
makes sense. Negative values can be considered
as 'no value present'.
This commit is contained in:
Martchus 2017-07-14 20:11:22 +02:00
parent 9fb1e918de
commit c78fec4151
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ template <typename intType>
inline void printProperty(
const char *propName, const intType value, const char *suffix = nullptr, bool force = false, ApplicationUtilities::Indentation indentation = 3)
{
if (value != 0 || force) {
if (value >= 0 || force) {
printProperty(propName, ConversionUtilities::numberToString<intType>(value).data(), suffix, indentation);
}
}