fix stat pid not exist

Change-Id: Iff7582e6189bbc62851e273fb1544261e4bd1181
Signed-off-by: leiguangyu <leiguangyu@huawei.com>
This commit is contained in:
leiguangyu 2024-11-11 10:03:16 +08:00
parent 95877614a6
commit 4329d3ae67

View File

@ -650,8 +650,8 @@ bool SubCommandStat::OnSubCommand(std::vector<std::string> &args)
HLOGV("CheckAppIsRunning() failed");
return false;
}
if (!CheckOptionPidAndApp(selectPids_)) {
HLOGV("CheckOptionPidAndApp() failed");
if (!CheckOptionPid(selectPids_)) {
HLOGV("CheckOptionPid() failed");
return false;
}