From: Elena Mamontova Date: Tue, 1 Nov 2016 12:57:32 +0000 (+0200) Subject: Ticket. MybeSet()function call added for the change-policy-timeout. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/c34623ea91d2c8771889581b5457b4a9ec8256b4?ds=inline Ticket. MybeSet()function call added for the change-policy-timeout. --- diff --git a/projects/sgconf/tariffs.cpp b/projects/sgconf/tariffs.cpp index c11ff472..c0d30a12 100644 --- a/projects/sgconf/tariffs.cpp +++ b/projects/sgconf/tariffs.cpp @@ -404,6 +404,7 @@ SGCONF::MaybeSet(options, "passive-cost", conf.tariffConf.passiveCost); SGCONF::MaybeSet(options, "traff-type", conf.tariffConf.traffType, ConvTraffType); SGCONF::MaybeSet(options, "period", conf.tariffConf.period, ConvPeriod); SGCONF::MaybeSet(options, "change-policy", conf.tariffConf.changePolicy, ConvChangePolicy); +SGCONF::MaybeSet(options, "change-policy-timeout", conf.tariffConf.changePolicyTimeout, readTime(conf.tariffConf.changePolicyTimeout)); SGCONF::MaybeSet(options, "times", conf.dirPrice, ConvTimes); SGCONF::MaybeSet(options, "day-prices", conf.dirPrice, ConvDayPrices); SGCONF::MaybeSet(options, "night-prices", conf.dirPrice, ConvNightPrices);