Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from Microsoft/master
Browse files Browse the repository at this point in the history
merge master
  • Loading branch information
SparkSnail authored Oct 16, 2018
2 parents 59626ec + deaa187 commit 31ea28b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webui/src/components/TrialStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ class TrialStatus extends React.Component<{}, TabState> {
sorter: (a: TableObj, b: TableObj) => (a.duration as number) - (b.duration as number),
render: (text: string, record: TableObj) => {
let duration;
if (record.duration) {
if (record.duration !== undefined && record.duration > 0) {
duration = this.convertTime(record.duration);
} else {
duration = 0;
}
return (
<span>{duration}</span>
Expand Down

0 comments on commit 31ea28b

Please sign in to comment.