fix ledger update

This commit is contained in:
lnk
2025-10-11 15:57:22 +08:00
parent 987dba34dc
commit fbbb96a64a
3 changed files with 20 additions and 9 deletions

View File

@@ -516,7 +516,7 @@ int get_max_stat_data_index(const std::string& filepath) {
while (std::getline(file, line)) {
// 查找符合要求的行
if (line.find("pt61850netd_pqfe -d cfg_stat_data -s") != std::string::npos) {
if (line.find("cloud-front") != std::string::npos) {
// 找到 -s 参数位置
std::size_t pos = line.find("-s");
if (pos != std::string::npos) {