Skip to content

Commit

Permalink
NAS-133373: Fix remaining display
Browse files Browse the repository at this point in the history
  • Loading branch information
bvasilenko committed Jan 7, 2025
1 parent 464a06e commit 6cc00fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('SmartTestResultListComponent', () => {
lifetime: 15929,
lba_of_first_error: null,
status: SmartTestResultStatus.Success,
remaining: 50,
remaining: 0.5,
power_on_hours_ago: 25,
},
{
Expand Down Expand Up @@ -77,7 +77,7 @@ describe('SmartTestResultListComponent', () => {
lifetime: 15929,
lba_of_first_error: null,
status: SmartTestResultStatus.Success,
remaining: 0.5,
remaining: 0.005,
power_on_hours_ago: 25,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class SmartTestResultListComponent implements OnInit {
propertyName: 'remaining',
getValue: (row) => {
if (typeof row.remaining === 'number' && row.remaining >= 0) {
return `${row.remaining}%`;
return `${row.remaining * 100}%`;
}

return row.status_verbose ? this.translate.instant(row.status_verbose) : '0%';
Expand Down

0 comments on commit 6cc00fd

Please sign in to comment.