args += "-d";
} else {
return new NetworkUsageAnswer(cmd, "success", 0L, 0L);
}
ExecutionResult callResult = executeInVR(privateIp, "vpc_netusage.sh", args);
if (!callResult.isSuccess()) {
s_logger.error("Unable to execute NetworkUsage command on DomR (" + privateIp + "), domR may not be ready yet. failure due to " + callResult.getDetails());
}
if (option.equals("get") || option.equals("vpn")) {
String result = callResult.getDetails();
if (result == null || result.isEmpty()) {
s_logger.error(" vpc network usage get returns empty ");
}
long[] stats = new long[2];
if (result != null) {