mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Renamed lib because thats reasonable
This commit is contained in:
1 parent
f8749fb8d4
commit
70ecdf010c
3 files changed
+11
-10
No files matched your search
@@ -11,7 +11,7 @@ var hashFiles = require('hash-files');
|
||||
var _ = require('underscore');
|
||||
|
||||
// internal libraries
|
||||
var libomega = require("./lib/libomega.js");
|
||||
var objectOps = require("./lib/objectOps.js");
|
||||
var fileOps = require("./lib/fileOps.js");
|
||||
|
||||
// require config.json
|
||||
@@ -486,7 +486,8 @@ function instanceManagement() {
|
||||
for(let key in flowStat1) totalFlows[key] = flowStat1[key];
|
||||
for(let key in flowStat2) totalFlows[key] = flowStat2[key];
|
||||
if(oldFlowStats && totalFlows && oldTimestamp) {
|
||||
let payload = libomega.clone(totalFlows);
|
||||
// todo: Migrate this to JSON.parse(JSON.stringify())
|
||||
let payload = objectOps.clone(totalFlows);
|
||||
// change from total reported to per time unit
|
||||
for(let key in oldFlowStats) {
|
||||
// get production per minute
|
||||
|
||||
Reference in new issue
Block a user