@shardus/monitor-client
Advanced tools
Comparing version 2.8.2 to 2.8.3
{ | ||
"name": "@shardus/monitor-client", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "entry.js", |
@@ -20,4 +20,11 @@ (function main() { | ||
let modifier = this.sortAsc ? 1 : -1 | ||
if (a[this.sortKey] < b[this.sortKey]) return -1 * modifier | ||
if (a[this.sortKey] > b[this.sortKey]) return 1 * modifier | ||
const valueA = a[this.sortKey] | ||
const valueB = b[this.sortKey] | ||
if (typeof valueA === 'number' && typeof valueB === 'number') { | ||
return (valueA - valueB) * modifier | ||
} | ||
if (valueA < valueB) return -1 * modifier | ||
if (valueA > valueB) return 1 * modifier | ||
return 0 | ||
@@ -52,3 +59,8 @@ }) | ||
loadExternal: node.currentLoad.nodeLoad.external.toFixed(3), | ||
queueLength: node.queueLength, | ||
queueLengthAll: node.queueLengthAll || 0, | ||
queueLength: node.queueLength || 0, | ||
bucket15: node.queueLengthBuckets?.c15 || 0, | ||
bucket60: node.queueLengthBuckets?.c60 || 0, | ||
bucket120: node.queueLengthBuckets?.c120 || 0, | ||
bucket600: node.queueLengthBuckets?.c600 || 0, | ||
avgQueueTime: node.txTimeInQueue.toFixed(3), | ||
@@ -55,0 +67,0 @@ maxQueueTime: node.maxTxTimeInQueue.toFixed(3), |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2416229
5958