mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
recievedItemStats for master is working
This commit is contained in:
1 parent
04aba1eef1
commit
3d4c788788
3 files changed
+22
-4
No files matched your search
+3
-2
@@ -113,6 +113,7 @@ function makeItemGraphs(itemName){
|
||||
let HTML = ""
|
||||
// Draw in/out chart for unregistered slaves as well
|
||||
slaveIDs.unshift("unknown");
|
||||
slaveIDs.unshift("debug");
|
||||
slaveIDs.forEach(function(slaveID){
|
||||
["place", "remove"].forEach(statistic => {
|
||||
console.log("Making chart for "+slaveID+"'s "+statistic+" statistic")
|
||||
@@ -127,8 +128,8 @@ function makeItemGraphs(itemName){
|
||||
if(xmlhttp.readyState === XMLHttpRequest.DONE && xmlhttp.status === 200) {
|
||||
// console.log(xmlhttp.responseText);
|
||||
if(isJSON(xmlhttp.responseText) && JSON.parse(xmlhttp.responseText).statusForDebugging === undefined){
|
||||
drawChart("contentGraph"+slaveID, [JSON.parse(xmlhttp.response).data]);
|
||||
console.log(JSON.parse(xmlhttp.response).data)
|
||||
drawChart("contentGraph"+slaveID, [JSON.parse(xmlhttp.response).data], slaveID+" "+itemName);
|
||||
// console.log(JSON.parse(xmlhttp.response).data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user