From 6938676ef1cff4b0e3287abcd7e7acc18cb6ac33 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sun, 18 Nov 2018 12:10:31 +0100 Subject: [PATCH] dockerContainerStats() fixed issue cpu_percent win --- CHANGELOG.md | 1 + lib/docker.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb29bcc..0550e8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -100,6 +100,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.48.3 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent` win | | 3.48.2 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent`, win exec | | 3.48.1 | 2018-11-17 | `docker...()` fixed issue parsing docker socket JSON | | 3.48.0 | 2018-11-17 | `diskLayout()` better interface detection (WIN), `osInfo()` added build, serial | diff --git a/lib/docker.js b/lib/docker.js index 56a00cd..fa02f04 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -15,8 +15,12 @@ const util = require('./util'); const DockerSocket = require('./dockerSocket'); +let _platform = process.platform; +const _windows = (_platform === 'win32'); + let _docker_container_stats = {}; let _docker_socket; +let _docker_last_read = 0; // --------------------------