File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Feel free to ask questions or Google things at any point.
25
25
26
26
4 . Show the uptime on the server card
27
27
- If the server has been up for less than one day, show "Up for < 1 day"
28
- - Otherwise, show "Up for n days", with n rounded to an integer
28
+ - Otherwise, show "Up for n days", with n rounded down to an integer
29
29
- There is no need to worry about showing fractions, or weeks/months/years etc.
30
30
31
31
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface IServer {
3
3
name : string ;
4
4
description : string ;
5
5
isUp : boolean ;
6
- uptime : number ; // in seconds
6
+ uptimeMinutes : number ;
7
7
}
8
8
9
9
export const MOCK_SERVERS : IServer [ ] = [
@@ -12,25 +12,25 @@ export const MOCK_SERVERS: IServer[] = [
12
12
name : `Web-001` ,
13
13
description : `Main web server` ,
14
14
isUp : true ,
15
- uptime : 345600
15
+ uptimeMinutes : 345600
16
16
} , {
17
17
id : `w002` ,
18
18
name : `Web-002` ,
19
19
description : `Secondary web server` ,
20
20
isUp : true ,
21
- uptime : 604800
21
+ uptimeMinutes : 604800
22
22
} , {
23
23
id : `db001` ,
24
24
name : `DB-001` ,
25
25
description : `Database server` ,
26
26
isUp : false ,
27
- uptime : 0
27
+ uptimeMinutes : 0
28
28
} ,
29
29
{
30
30
id : `db002` ,
31
31
name : `DB-002` ,
32
32
description : `Secondary database server` ,
33
33
isUp : true ,
34
- uptime : 240
34
+ uptimeMinutes : 240
35
35
} ,
36
36
] ;
You can’t perform that action at this time.
0 commit comments