Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bac89736
Commit
bac89736
authored
Sep 19, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update references to parseSeconds and stringifyTime in geo_nodes.
parent
7eb383ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/geo_nodes.js
app/assets/javascripts/geo_nodes.js
+3
-2
No files found.
app/assets/javascripts/geo_nodes.js
View file @
bac89736
/* eslint-disable no-new*/
/* eslint-disable no-new*/
import
'
./smart_interval
'
;
import
'
./smart_interval
'
;
import
{
parseSeconds
,
stringifyTime
}
from
'
./lib/utils/pretty_time
'
;
const
healthyClass
=
'
geo-node-healthy
'
;
const
healthyClass
=
'
geo-node-healthy
'
;
const
unhealthyClass
=
'
geo-node-unhealthy
'
;
const
unhealthyClass
=
'
geo-node-unhealthy
'
;
...
@@ -52,11 +53,11 @@ class GeoNodeStatus {
...
@@ -52,11 +53,11 @@ class GeoNodeStatus {
// Replication lag can be nil if the secondary isn't actually streaming
// Replication lag can be nil if the secondary isn't actually streaming
if
(
status
.
db_replication_lag
)
{
if
(
status
.
db_replication_lag
)
{
const
parsedTime
=
gl
.
utils
.
prettyTime
.
parseSeconds
(
status
.
db_replication_lag
,
{
const
parsedTime
=
parseSeconds
(
status
.
db_replication_lag
,
{
hoursPerDay
:
24
,
hoursPerDay
:
24
,
daysPerWeek
:
7
,
daysPerWeek
:
7
,
});
});
this
.
$dbReplicationLag
.
text
(
gl
.
utils
.
prettyTime
.
stringifyTime
(
parsedTime
));
this
.
$dbReplicationLag
.
text
(
stringifyTime
(
parsedTime
));
}
else
{
}
else
{
this
.
$dbReplicationLag
.
text
(
'
UNKNOWN
'
);
this
.
$dbReplicationLag
.
text
(
'
UNKNOWN
'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment