Update stats.js
This commit is contained in:
parent
2d1c617880
commit
e2087c12df
|
|
@ -71,6 +71,14 @@ function wsPostCallbak(method, version, args,callback){
|
|||
}
|
||||
|
||||
|
||||
function toSecond(val){
|
||||
if (val>=1000){
|
||||
val = (val / 1000).toFixed()+"s";
|
||||
}
|
||||
return val + "ms";
|
||||
}
|
||||
|
||||
|
||||
function makeHoursData(data, type="ip"){
|
||||
var list = [];
|
||||
var rlist = [];
|
||||
|
|
@ -1516,7 +1524,7 @@ function wsTableErrorLogRequest(page){
|
|||
list += '<td><span class="overflow_hide" style="width:100px;">' + data[i]['domain'] +'</span></td>';
|
||||
list += '<td>' + data[i]['ip'] +'</td>';
|
||||
list += '<td>' + toSize(data[i]['body_length']) +'</td>';
|
||||
list += '<td>' + data[i]['request_time'] +'ms</td>';
|
||||
list += '<td>' + toSecond(data[i]['request_time']) +'</td>';
|
||||
list += '<td><span class="overflow_hide" style="width:150px;">' + data[i]['uri'] +'</span></td>';
|
||||
list += '<td>' + data[i]['status_code']+'/' + data[i]['method'] +'</td>';
|
||||
list += '<td><a data-id="'+i+'" href="javascript:;" class="btlink details" title="详情">详情</a></td>';
|
||||
|
|
@ -1725,7 +1733,7 @@ function wsTableLogRequest(page){
|
|||
list += '<td><span class="overflow_hide" style="width:100px;">' + data[i]['domain'] +'</span></td>';
|
||||
list += '<td>' + data[i]['ip'] +'</td>';
|
||||
list += '<td>' + toSize(data[i]['body_length']) +'</td>';
|
||||
list += '<td>' + data[i]['request_time'] +'ms</td>';
|
||||
list += '<td>' + toSecond(data[i]['request_time']) +'</td>';
|
||||
list += '<td><span class="overflow_hide" style="width:150px;">' + data[i]['uri'] +'</span></td>';
|
||||
list += '<td>' + data[i]['status_code']+'/' + data[i]['method'] +'</td>';
|
||||
list += '<td><a data-id="'+i+'" href="javascript:;" class="btlink details" title="详情">详情</a></td>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue