Commit d3ccb4d4 authored by Clement Ho's avatar Clement Ho

Merge branch 'tc-geo-replication-time-24-7' into 'master'

Handle Geo DB replication lag as 24h/day & 7d/week

Closes #3298

See merge request !2833
parents 192ae505 5ee0039e
......@@ -40,7 +40,10 @@ 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 = gl.utils.prettyTime.parseSeconds(status.db_replication_lag, {
hoursPerDay: 24,
daysPerWeek: 7,
});
this.$dbReplicationLag.text(gl.utils.prettyTime.stringifyTime(parsedTime));
} else {
this.$dbReplicationLag.text('UNKNOWN');
......
---
title: Handle Geo DB replication lag as 24h/day & 7d/week
merge_request: 2833
author:
type: fixed
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