mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
disable user stat. #21
This commit is contained in:
@@ -43,7 +43,7 @@ public class Arthas {
|
||||
if (commandLine.getOptionValue("target-ip") == null) {
|
||||
throw new IllegalStateException("as.sh is too old to support web console, " +
|
||||
"please run the following command to upgrade to latest version:" +
|
||||
"\ncurl -sLk http://arthas.io/arthas/install.sh | sh");
|
||||
"\ncurl -sLk https://alibaba.github.io/arthas/install.sh | sh");
|
||||
}
|
||||
configure.setIp((String) commandLine.getOptionValue("target-ip"));
|
||||
configure.setTelnetPort((Integer) commandLine.getOptionValue("telnet-port"));
|
||||
|
||||
@@ -66,8 +66,9 @@ public class UserStatUtil {
|
||||
|
||||
static class RemoteJob implements Runnable {
|
||||
|
||||
// private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
||||
private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
||||
// private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
||||
// disable stat
|
||||
private StringBuilder link = null;
|
||||
|
||||
private String resource;
|
||||
|
||||
@@ -89,6 +90,9 @@ public class UserStatUtil {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (link == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
link.append(resource);
|
||||
if (queryData.length() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user