чуть больше информации

This commit is contained in:
Alexey Kasyanchuk
2017-08-25 07:18:38 +03:00
parent 32ff762ee8
commit 5b48bb4deb
2 changed files with 4 additions and 1 deletions

View File

@ -227,6 +227,7 @@ class Spider extends Emiter {
const path = `/sys/class/net/${config.trafficInterface}/statistics/rx_bytes`
if(fs.existsSync(path))
{
trafficDebug('limitation', config.trafficMax / 1024, 'kbps/s')
let traffic = 0
setInterval(() => {
fs.readFile(path, (err, newTraffic) => {