if (!conf.nextTariff.empty())
stream << "<tariff delayed=\"" << conf.nextTariff.data() << "\"/>";
else if (!conf.tariffName.empty())
- stream << "<tariff now=\"" << conf.nextTariff.data() << "\"/>";
+ stream << "<tariff now=\"" << conf.tariffName.data() << "\"/>";
appendResetable(stream, "note", MaybeEncode(conf.note));
appendResetable(stream, "name", MaybeEncode(conf.realName)); // TODO: name -> realName
if (!stat.cashAdd.empty())
stream << "<cash add=\"" << stat.cashAdd.data().first << "\" msg=\"" << Encode12str(stat.cashAdd.data().second) << "\"/>";
else if (!stat.cashSet.empty())
- stream << "<cash set=\"" << stat.cashAdd.data().first << "\" msg=\"" << Encode12str(stat.cashAdd.data().second) << "\"/>";
+ stream << "<cash set=\"" << stat.cashSet.data().first << "\" msg=\"" << Encode12str(stat.cashSet.data().second) << "\"/>";
appendResetable(stream, "freeMb", stat.freeMb);