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{} (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangWei authored and qinzuoyan committed Nov 19, 2018
1 parent 7f39773 commit f71d67c
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 f71d67c

Please sign in to comment.