@cloudtower/eagle 0.31.9 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,22 +125,6 @@ function formatBytes(bytes, decimals = 2) {
125
125
  unit: units[i]
126
126
  };
127
127
  }
128
- function formatBytePerSecond(bytes, decimals = 2) {
129
- if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
130
- return {
131
- value: 0,
132
- unit: "B/s"
133
- };
134
- }
135
- const k = 1024;
136
- const units = ["B/s", "KiB/s", "MiB/s", "GiB/s", "TiB/s", "PiB/s"];
137
- let i = Math.floor(Math.log(bytes) / Math.log(k));
138
- i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
139
- return {
140
- value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
141
- unit: units[i]
142
- };
143
- }
144
128
  function formatPercent(input, decimals = 2, saturated = true) {
145
129
  if (input === MAGIC_METRIC_NULL) {
146
130
  input = 0;
@@ -197,7 +181,6 @@ exports.WEEK = WEEK;
197
181
  exports.formatBitPerSecond = formatBitPerSecond;
198
182
  exports.formatBits = formatBits;
199
183
  exports.formatBps = formatBps;
200
- exports.formatBytePerSecond = formatBytePerSecond;
201
184
  exports.formatBytes = formatBytes;
202
185
  exports.formatFrequency = formatFrequency;
203
186
  exports.formatPercent = formatPercent;