master v1.0
huangyongan 3 years ago
parent 59592b6fc2
commit 5f9c84ec2f

@ -2,7 +2,6 @@
#include <boost/filesystem.hpp>
#include <vector>
#include <string>
#include <algorithm>
#include <set>
#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());
}

Loading…
Cancel
Save