Phase 1: Add ESLint/Prettier config + baseline auto-fixes
This commit is contained in:
@@ -96,17 +96,17 @@ module.exports = function(ctx) {
|
||||
image: containerInfo.Image,
|
||||
status: containerInfo.State,
|
||||
cpu: {
|
||||
percent: Math.round(cpuPercent * 100) / 100
|
||||
percent: Math.round(cpuPercent * 100) / 100,
|
||||
},
|
||||
memory: {
|
||||
used: memUsage,
|
||||
limit: memLimit,
|
||||
percent: Math.round(memPercent * 100) / 100
|
||||
percent: Math.round(memPercent * 100) / 100,
|
||||
},
|
||||
network: {
|
||||
rx: netRx,
|
||||
tx: netTx
|
||||
}
|
||||
tx: netTx,
|
||||
},
|
||||
});
|
||||
} catch (e) {
|
||||
// Skip containers we can't get stats for
|
||||
@@ -151,15 +151,15 @@ module.exports = function(ctx) {
|
||||
status: info.State.Status,
|
||||
started: info.State.StartedAt,
|
||||
cpu: {
|
||||
percent: Math.round(cpuPercent * 100) / 100
|
||||
percent: Math.round(cpuPercent * 100) / 100,
|
||||
},
|
||||
memory: {
|
||||
used: memUsage,
|
||||
limit: memLimit,
|
||||
percent: Math.round((memUsage / memLimit) * 100 * 100) / 100
|
||||
percent: Math.round((memUsage / memLimit) * 100 * 100) / 100,
|
||||
},
|
||||
network: { rx: netRx, tx: netTx }
|
||||
}
|
||||
network: { rx: netRx, tx: netTx },
|
||||
},
|
||||
});
|
||||
}, 'stats-container'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user