File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 66* Update the libraries
77* Add the list of contributors in the Play view
88* Fix the vulnerability introduced by the concurrently package (lodash old version)
9+
10+ ## v0.0.1-alpha.12
11+ * Format running time to include hours instead of just minutes
Original file line number Diff line number Diff line change @@ -327,7 +327,12 @@ class Play extends Component {
327327
328328 const instanceTypeCell = config . AWSInstanceType ;
329329
330- const runningCell = this . state . cloudRIGState . runningTime ? this . state . cloudRIGState . runningTime + " mins" : "-" ;
330+ let runningCell = "-" ;
331+ if ( this . state . cloudRIGState . runningTime ) {
332+ const runningHours = Math . floor ( this . state . cloudRIGState . runningTime / 60 ) ;
333+ const runningMinutes = this . state . cloudRIGState . runningTime % 60 ;
334+ runningCell = runningHours > 0 ? `${ runningHours } h ${ runningMinutes } mins` : `${ runningMinutes } mins` ;
335+ }
331336
332337 const remainingCell = this . state . cloudRIGState . scheduledStop
333338 ? this . state . cloudRIGState . remainingTime + " mins"
You can’t perform that action at this time.
0 commit comments