Refactoring
This commit is contained in:
parent
cd12bb33a5
commit
ba0e57396d
12 changed files with 667 additions and 764 deletions
|
|
@ -17,7 +17,7 @@ const requestStats = require('request-stats');
|
|||
import activityPub from './activitypub';
|
||||
import webFinger from './webfinger';
|
||||
import config from '../config';
|
||||
import { updateNetworkStats } from '../services/update-chart';
|
||||
import { coreChart } from '../services/stats';
|
||||
import apiServer from './api';
|
||||
|
||||
// Init app
|
||||
|
|
@ -104,7 +104,7 @@ export default () => new Promise(resolve => {
|
|||
const outgoingBytes = queue.reduce((a, b) => a + b.res.bytes, 0);
|
||||
queue = [];
|
||||
|
||||
updateNetworkStats(requests, time, incomingBytes, outgoingBytes);
|
||||
coreChart.updateNetworkStats(requests, time, incomingBytes, outgoingBytes);
|
||||
}, 5000);
|
||||
//#endregion
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue