1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Move cvtDoubleToStr() to strNewDbl().

This is a more logical location and it reduces the dependencies required to compile the common/convert module.
This commit is contained in:
David Steele
2021-01-27 11:50:10 -05:00
parent 87eb081a8f
commit 5d34bf3f38
11 changed files with 47 additions and 43 deletions

View File

@ -130,8 +130,7 @@ cmdOption(void)
else if (cfgParseOptionType(optionId) == cfgOptTypeTime)
{
valueList = strLstNew();
strLstAdd(
valueList, cvtDoubleToStr((double)cfgOptionIdxInt64(optionId, optionIdx) / MSEC_PER_SEC));
strLstAdd(valueList, strNewDbl((double)cfgOptionIdxInt64(optionId, optionIdx) / MSEC_PER_SEC));
}
// Else only one value
else