mirror of https://github.com/tp4a/teleport
pull/32/head
parent
8e8a06628d
commit
4ec857e206
|
@ -71,3 +71,4 @@ __pycache__
|
|||
/common/libex/test
|
||||
/client/tp_rdp
|
||||
/server/tp_core/protocol/rdp
|
||||
/client/tools/tprdp
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue