!131 解决bytrace命令行参数--trace_clock设置无效的问题

Merge pull request !131 from cw/master
This commit is contained in:
openharmony_ci
2023-04-10 11:59:52 +00:00
committed by Gitee
+1 -1
View File
@@ -240,7 +240,7 @@ static bool SetClock(const string& timeclock)
size_t end = allClocks.find("]");
string newClock;
if (begin != string::npos && end != string::npos &&
timeclock.compare(0, timeclock.size(), allClocks, begin + 1, end - begin - 1) >= 0) {
timeclock.compare(0, timeclock.size(), allClocks, begin + 1, end - begin - 1) == 0) {
return true;
} else if (allClocks.find(timeclock) != string::npos) {
newClock = timeclock;