X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7377ab11320e17a5368a731fa7b0d93cd9415e81..0492dd9aebc0acf9158af88178c503d5d907f9e4:/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp index b2b07997..daf4ef62 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp @@ -115,7 +115,7 @@ void GET_TARIFFS::CreateAnswer() "tariffConf.traffType) + "\"/>" + "tariffConf.period) + "\"/>" + "tariffConf.changePolicy) + "\"/>" + - "tariffConf.changePolicyTimeout) + "\"/>" + + "tariffConf.changePolicyTimeout) + "\"/>" + ""; } @@ -303,7 +303,7 @@ int CHG_TARIFF::Start(void *, const char * el, const char ** attr) if (strcasecmp(el, "ChangePolicyTimeout") == 0) { - long int policyTime = 0; + int64_t policyTime = 0; if (str2x(attr[1], policyTime) == 0) td.tariffConf.changePolicyTimeout = (time_t)policyTime; return 0;