Skip to content

Commit

Permalink
Fixed Ps cmd return case crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool committed Aug 18, 2021
1 parent fd56bd0 commit 49bec7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observer_cli.erl
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ render_system_line(PsCmd, StableInfo) ->

[CpuPsV, MemPsV] =
case lists:filter(fun(Y) -> Y =/= [] end, string:split(CmdValue, " ", all)) of
[] -> ["--", "--"];
[V1, V2] -> [V1, V2]
[V1, V2] -> [V1, V2];
_ -> ["--", "--"]
end,
Title = ?render([
?W(SysVersion, 136),
Expand Down

0 comments on commit 49bec7e

Please sign in to comment.