diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-21 07:10:35 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-21 07:10:35 +0900 |
| commit | ba0e57396d5ab609e18dcaf4ba8235376cf429ee (patch) | |
| tree | f73fed603024739483d3edd51fc2191a9d818ebb /src/server/index.ts | |
| parent | Fix: Remove duplicated key (diff) | |
| download | sharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.tar.gz sharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.tar.bz2 sharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.zip | |
Refactoring
Diffstat (limited to 'src/server/index.ts')
| -rw-r--r-- | src/server/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 66a1d97d29..f547668e90 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -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 }); |