diff --git a/source/common/src/ttime.c b/source/common/src/ttime.c index 77b45b6df1bb861375986e946b0e24680c11cfdc..60145f3ad4c34c183ebfa301ccc7d818e28bb443 100644 --- a/source/common/src/ttime.c +++ b/source/common/src/ttime.c @@ -679,7 +679,7 @@ int32_t parseNatualDuration(const char* token, int32_t tokenLen, int64_t* durati *unit = token[tokenLen - 1]; if (*unit == 'n' || *unit == 'y') { - return 0; + return -1; } return getDuration(*duration, *unit, duration, timePrecision);