Commit e648d829 authored by Quxl's avatar Quxl

x

parent 55f1f662
......@@ -66,7 +66,7 @@ public class SqlConcurrentController {
stack.add(ExceptionHandler.toStackString(e).toString());
}
Long end = System.currentTimeMillis();
return Rjx.jsonOk().setData(list).set("执行时间", (end-start)).set("执行次数", executeCount).set("并发线程", threadCount);
return Rjx.jsonOk().setData(list).set("stack", StringUtil.join("\n\n\n\n", stack)).setMessage("执行时间:" + (end-start) + ", 执行次数:" + executeCount + ", 并发线程:" + threadCount);
}
public static class Runner implements Runnable {
......
......@@ -58,7 +58,9 @@
var scope = this;
window.localStorage.setItem("ConcurentDataSource", JSON.stringify(scope.form));
$.post("concurrentSql", scope.form, function(json) {
scope.logs.push(JSON.stringify(json, null, 8));
scope.logs.push(JSON.stringify(json.data, null, 8));
scope.logs.push(json.message);
scope.logs.push(json.stack);
});
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment