pull/32/head
apexliu 2017-04-13 02:57:00 +08:00
parent 8e8a06628d
commit 4ec857e206
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -71,3 +71,4 @@ __pycache__
/common/libex/test
/client/tp_rdp
/server/tp_core/protocol/rdp
/client/tools/tprdp

View File

@ -175,7 +175,7 @@ ywl.on_host_table_created = function (tbl) {
var ip = window.location.hostname;//ywl.page_options.ts_server.ip;
var port = parseInt(window.location.port);//ywl.page_options.ts_server.port;
var url = 'http://' + ip + ':' + port + '/log/replay/rdp/' + row_data.id;
var tail = 'log/replay/rdp/' + row_data.id;
var tail = 'log/replay/rdp/' + prefixInteger(row_data.id, 6);
var args = {};
args.id = parseInt(row_data.id);
args.host = ip;

View File

@ -121,6 +121,10 @@ function digital_precision(num, keep) {
return Math.round(num * Math.pow(10, keep)) / Math.pow(10, keep);
}
function prefixInteger(num, length) {
return (num / Math.pow(10, length)).toFixed(length).substr(2);
}
function size2str(size, precision) {
precision = precision || 0;
var s = 0;