disable user stat. #21

This commit is contained in:
hengyunabc
2018-09-14 12:30:33 +08:00
parent afb3854c3b
commit 91b78650be
2 changed files with 7 additions and 3 deletions
@@ -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) {