Skip to content

Commit 5da4b20

Browse files
committed
moved ping command status at the top for each platform - easier to debug at a glance
1 parent a05c034 commit 5da4b20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/stats/linuxStats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ LinuxStats.mem = function (callback) {
6161

6262
LinuxStats.network = function (callback) {
6363
var startTime = new Date();
64-
var commands = [constants.LINUX.TCP_LISTEN_ESTABLISHED, constants.COMMON.PING_HUB, constants.COMMON.PING_AUTOMATE];
64+
var commands = [constants.COMMON.PING_HUB, constants.COMMON.PING_AUTOMATE, constants.LINUX.TCP_LISTEN_ESTABLISHED];
6565
var finalOutput = "";
6666

6767
Utils.execMultiple(commands, function (results) {

src/stats/macStats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ MacStats.mem = function (callback) {
7171

7272
MacStats.network = function (callback) {
7373
var startTime = new Date();
74-
var commands = [constants.MAC.TCP_LISTEN_ESTABLISHED, constants.COMMON.PING_HUB, constants.COMMON.PING_AUTOMATE];
74+
var commands = [constants.COMMON.PING_HUB, constants.COMMON.PING_AUTOMATE, constants.MAC.TCP_LISTEN_ESTABLISHED];
7575
var finalOutput = "";
7676

7777
Utils.execMultiple(commands, function (results) {

src/stats/winStats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ WinStats.mem = function (callback) {
6666

6767
WinStats.network = function (callback) {
6868
var startTime = new Date();
69-
var commands = [constants.WIN.NETSTAT_TCP, constants.WIN.NETSTAT_ROUTING_TABLE, constants.WIN.IPCONFIG_ALL, constants.WIN.PING_HUB, constants.WIN.PING_AUTOMATE];
69+
var commands = [constants.WIN.PING_HUB, constants.WIN.PING_AUTOMATE, constants.WIN.NETSTAT_TCP, constants.WIN.NETSTAT_ROUTING_TABLE, constants.WIN.IPCONFIG_ALL];
7070
var finalOutput = "";
7171

7272
Utils.execMultiple(commands, function (results) {

0 commit comments

Comments
 (0)