Skip to content

Commit

Permalink
Right align string for non-int (optional) values
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasCJL committed Oct 17, 2023
1 parent 13c1b2c commit f3b9641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pySMART/interface/nvme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def __repr__(self):
# Self-test status: Extended self-test in progress (28% completed)
# Num Test_Description Status Power_on_Hours Failing_LBA NSID Seg SCT Code
# 0 Extended Completed without error 3441 - - - - -
return ("{0:>2} {1:18}{2:29}{3:16}{4:13}{5:5}{6:4}{7:4}{8:4}".format(
return ("{0:>2} {1:18}{2:29}{3:16}{4:>13}{5:>5}{6:>4}{7:>4}{8:>4}".format(
self.num,
self.description,
self.status,
Expand Down

0 comments on commit f3b9641

Please sign in to comment.