From 5f9c84ec2f3019bc0d813f04998c534c37ccb7cd Mon Sep 17 00:00:00 2001 From: huangyongan Date: Tue, 25 Apr 2023 18:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 7b1145b..129f554 100644 --- a/main.cpp +++ b/main.cpp @@ -2,7 +2,6 @@ #include #include #include -#include #include #define K_VISION_DIR "/hard/k_vision" @@ -137,8 +136,8 @@ long long get_file_timestamp(const std::string& strPath) } fs::path path(strPath); str = path.filename().string(); - auto strTime = str.substr(0, 14); - std::remove(strTime.begin(), strTime.end(), '_'); + auto strTime = str.substr(0, 15); + strTime.erase(8, 1); return std::atoll(strTime.c_str()); }