Commit 78bbdcda authored by Fatih Acet's avatar Fatih Acet

Merge branch 'bpj-ee-pretty-time-update' into 'master'

Update references to parseSeconds and stringifyTime in geo_nodes.

See merge request gitlab-org/gitlab-ee!2963
parents 5d31778c bac89736
/* eslint-disable no-new*/
import './smart_interval';
import { parseSeconds, stringifyTime } from './lib/utils/pretty_time';
const healthyClass = 'geo-node-healthy';
const unhealthyClass = 'geo-node-unhealthy';
......@@ -52,11 +53,11 @@ class GeoNodeStatus {
// Replication lag can be nil if the secondary isn't actually streaming
if (status.db_replication_lag) {
const parsedTime = gl.utils.prettyTime.parseSeconds(status.db_replication_lag, {
const parsedTime = parseSeconds(status.db_replication_lag, {
hoursPerDay: 24,
daysPerWeek: 7,
});
this.$dbReplicationLag.text(gl.utils.prettyTime.stringifyTime(parsedTime));
this.$dbReplicationLag.text(stringifyTime(parsedTime));
} else {
this.$dbReplicationLag.text('UNKNOWN');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment