Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
tools: fix Toollet static{}
Browse files Browse the repository at this point in the history
  • Loading branch information
huangwei5 committed Sep 19, 2018
1 parent a4e45c9 commit 8250dff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/java/com/xiaomi/infra/pegasus/tools/Toollet.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ public class Toollet {
int process_id = -1;
while ((line = input.readLine()) != null) {
if (line.contains("pegasus_server") && line.contains("meta")) {
String[] words = line.split(" ");
for (String word : words) {
String[] words = line.split("\\s+");
if (words.length > 1) {
try {
process_id = Integer.valueOf(word);
break;
process_id = Integer.valueOf(words[1]);
} catch (Throwable ex) {
}
}
Expand Down

0 comments on commit 8250dff

Please sign in to comment.