mirror of
https://github.com/openharmony/developtools_bytrace.git
synced 2026-07-15 06:07:13 -04:00
解决bytrace命令行参数--trace_clock设置无效的问题
Signed-off-by: chenwei <chenwei469@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user