summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-12-27 06:17:28 -0800
committerStan Hu <stanhu@gmail.com>2017-12-27 08:22:46 -0800
commitf102e45a196eaa2a59fb92157d04e22736805ad0 (patch)
treea82f0637f52e62a35bf644da7c1a54dd2104c3bf /app/assets
parent3d56d93fc53308ad384a0aa22df970b58ea543e9 (diff)
downloadgitlab-ce-f102e45a196eaa2a59fb92157d04e22736805ad0.tar.gz
Humanize the units of "Showing last X KiB of log" in job tracesh-make-kib-human
Closes #38613
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/job.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/job.js b/app/assets/javascripts/job.js
index 198a7823381..573c4deb3e4 100644
--- a/app/assets/javascripts/job.js
+++ b/app/assets/javascripts/job.js
@@ -1,7 +1,7 @@
import _ from 'underscore';
import { visitUrl } from './lib/utils/url_utility';
import bp from './breakpoints';
-import { bytesToKiB } from './lib/utils/number_utils';
+import { numberToHumanSize } from './lib/utils/number_utils';
import { setCiStatusFavicon } from './lib/utils/common_utils';
import { timeFor } from './lib/utils/datetime_utility';
@@ -193,7 +193,7 @@ export default class Job {
// we need to show a message warning the user about that.
if (this.logBytes < log.total) {
// size is in bytes, we need to calculate KiB
- const size = bytesToKiB(this.logBytes);
+ const size = numberToHumanSize(this.logBytes);
$('.js-truncated-info-size').html(`${size}`);
this.$truncatedInfo.removeClass('hidden');
} else {