This commit is contained in:
midoks
2019-01-11 00:56:02 +08:00
parent 003e11eda3
commit aedb8bba05
3 changed files with 12 additions and 2 deletions
+8
View File
@@ -32,6 +32,14 @@ function dhtPost(method, args, callback){
function dhtTrend(){
var obj = $('#dht_trend');
if (obj.length>0){
console.log('已经加载图表...');
return;
}
var trend = '<div id="dht_trend" style="width:100%;height:330px;"></div>';
$('.soft-man-con').html(trend);
dhtTrendRender();
+2 -1
View File
@@ -7,4 +7,5 @@ DB_NAME = ssbc
[queue]
MAX_QUEUE_LT = 30
MAX_QUEUE_PT = 200
MAX_QUEUE_PT = 200
MAX_NODE_QSIZE = 200
+2 -1
View File
@@ -69,6 +69,7 @@ TOKEN_LENGTH = 2
section_queue = cp.sections()[1]
MAX_QUEUE_LT = cp.getint(section_db, "MAX_QUEUE_LT")
MAX_QUEUE_PT = cp.getint(section_db, "MAX_QUEUE_PT")
MAX_NODE_QSIZE = cp.getint(section_db, "MAX_NODE_QSIZE")
geoip = pygeoip.GeoIP('GeoIP.dat')
@@ -421,6 +422,6 @@ if __name__ == "__main__":
rpcthread.setDaemon(True)
rpcthread.start()
dht = DHTServer(master, "0.0.0.0", 6881, max_node_qsize=200)
dht = DHTServer(master, "0.0.0.0", 6881, max_node_qsize=MAX_NODE_QSIZE)
dht.start()
dht.auto_send_find_node()