@grafana/k6-test-builder 0.8.0 → 0.8.1

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.
package/dist/index.js CHANGED
@@ -2239,8 +2239,8 @@ function $4bac6ee95b8c8b72$export$5a00511f040384d7(timeInSeconds = 0) {
2239
2239
  return `${Math.round(totalSeconds / 60)}min`;
2240
2240
  }
2241
2241
  function $4bac6ee95b8c8b72$export$435f89f92ea3c766(hasFractionalVUhResolution, vus, duration) {
2242
- if (hasFractionalVUhResolution) return Math.max(1.0, $4bac6ee95b8c8b72$var$roundup(vus * duration / 3600, 0.01));
2243
- else return Math.max(1.0, vus * Math.ceil(duration / 3600.0));
2242
+ const vuhs = hasFractionalVUhResolution ? Math.max(1.0, $4bac6ee95b8c8b72$var$roundup(vus * duration / 3600, 0.01)) : Math.max(1.0, vus * Math.ceil(duration / 3600.0));
2243
+ return $4bac6ee95b8c8b72$export$24567f54a9be5ab9(vuhs);
2244
2244
  }
2245
2245
  function $4bac6ee95b8c8b72$var$roundup(value, fraction) {
2246
2246
  return Math.ceil(value / fraction) * fraction;
package/dist/module.js CHANGED
@@ -2216,8 +2216,8 @@ function $f54872b9dc7588c3$export$5a00511f040384d7(timeInSeconds = 0) {
2216
2216
  return `${Math.round(totalSeconds / 60)}min`;
2217
2217
  }
2218
2218
  function $f54872b9dc7588c3$export$435f89f92ea3c766(hasFractionalVUhResolution, vus, duration) {
2219
- if (hasFractionalVUhResolution) return Math.max(1.0, $f54872b9dc7588c3$var$roundup(vus * duration / 3600, 0.01));
2220
- else return Math.max(1.0, vus * Math.ceil(duration / 3600.0));
2219
+ const vuhs = hasFractionalVUhResolution ? Math.max(1.0, $f54872b9dc7588c3$var$roundup(vus * duration / 3600, 0.01)) : Math.max(1.0, vus * Math.ceil(duration / 3600.0));
2220
+ return $f54872b9dc7588c3$export$24567f54a9be5ab9(vuhs);
2221
2221
  }
2222
2222
  function $f54872b9dc7588c3$var$roundup(value, fraction) {
2223
2223
  return Math.ceil(value / fraction) * fraction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/k6-test-builder",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/module.js",