stream-log-stats
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -52,7 +52,7 @@ 'use strict' | ||
const resource = stats.resource[key] | ||
const { value, unit } = byteSize(resource.bytes, { units: 'iec', precision: 2 }) | ||
const bytes = byteSize(resource.bytes, { units: 'iec', precision: 2 }) | ||
stats.topResources.push({ | ||
resource: key, | ||
requests: resource.requests, | ||
bytes: `${value} ${unit}` | ||
bytes: `${bytes.value} ${bytes.unit}` | ||
}) | ||
@@ -62,7 +62,7 @@ }) | ||
const type = stats.type[key] | ||
const { value, unit } = byteSize(type.bytes, { units: 'iec', precision: 2 }) | ||
const bytes = byteSize(type.bytes, { units: 'iec', precision: 2 }) | ||
stats.topTypes.push({ | ||
type: key, | ||
requests: type.requests, | ||
bytes: `${value} ${unit}` | ||
bytes: `${bytes.value} ${bytes.unit}` | ||
}) | ||
@@ -80,4 +80,4 @@ }) | ||
this.bytes += bytes | ||
const { value, unit } = byteSize(this.bytes, { units: 'iec', precision: 2 }) | ||
this.transferred = `${value} ${unit}` | ||
const b = byteSize(this.bytes, { units: 'iec', precision: 2 }) | ||
this.transferred = `${b.value} ${b.unit}` | ||
} |
{ | ||
"name": "stream-log-stats", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Prints statistics from the incoming web log stream to the console", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/stream-log-stats.git", |
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
10670