mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Use more consistent spacing in objects literals
This commit is contained in:
1 parent
29f066a191
commit
b254e4189d
17 files changed
+66
-66
No files matched your search
@@ -49,7 +49,7 @@ class neuralDole {
|
||||
this.getRequestStats(name,5)
|
||||
);
|
||||
this.stats[name]=this.stats[name] || [];
|
||||
this.stats[name].unshift({req:0,given:0});//stats[name][0] is the one we currently collect
|
||||
this.stats[name].unshift({ req:0,given:0 });//stats[name][0] is the one we currently collect
|
||||
if (this.stats[name].length>10) this.stats[name].pop();//remove if too many samples in stats
|
||||
|
||||
this.dole[name] = magicData[0];
|
||||
|
||||
@@ -116,4 +116,4 @@ outputs[1]=sigmoid3(outputs[1]);
|
||||
return [sigmoid0(outputs[0]),avg];
|
||||
}
|
||||
|
||||
module.exports = {Dose,Tick};
|
||||
module.exports = { Dose,Tick };
|
||||
@@ -136,7 +136,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
} else if (method === "dole") {
|
||||
for (let item of message.data.items) {
|
||||
let count = dole.doleDivider({
|
||||
object: { name: item[0], count: item[1], instanceId, instanceName},
|
||||
object: { name: item[0], count: item[1], instanceId, instanceName },
|
||||
items: this.items,
|
||||
logItemTransfers: this.master.config.get("subspace_storage.log_item_transfers"),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user