Skip to content

Commit

Permalink
Merge pull request #89 from rhoriguchi/master
Browse files Browse the repository at this point in the history
Fix "Controller Busy Time" parsing issue
  • Loading branch information
ralequi committed May 20, 2024
2 parents a07dda0 + b0e95cd commit 0a242ce
Show file tree
Hide file tree
Showing 3 changed files with 455 additions 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 @@ -628,7 +628,7 @@ def parse(self, data: Iterator[str]) -> None:
value.replace(',', '').replace('.', '').replace('’', ''))
elif name == 'Controller Busy Time':
self.controllerBusyTime = int(
value.replace(',', '').replace('.', ''))
value.replace(',', '').replace('.', '').replace('’', ''))
elif name == 'Power Cycles':
self.powerCycles = int(
value.replace(',', '').replace('.', ''))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.30] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: WDS200T1X0E-00AFY0
Serial Number: 215119800624
Firmware Version: 614600WD
PCI Vendor/Subsystem ID: 0x15b7
IEEE OUI Identifier: 0x001b44
Total NVM Capacity: 2’000’398’934’016 [2.00 TB]
Unallocated NVM Capacity: 0
Controller ID: 8224
NVMe Version: 1.4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 2’000’398’934’016 [2.00 TB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 001b44 8b451ffb99
Local Time is: Thu May 16 20:25:55 2024 CEST
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Log Page Attributes (0x1e): Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg Pers_Ev_Lg
Maximum Data Transfer Size: 128 Pages
Warning Comp. Temp. Threshold: 84 Celsius
Critical Comp. Temp. Threshold: 88 Celsius
Namespace 1 Features (0x02): NA_Fields

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 9.00W 9.00W - 0 0 0 0 0 0
1 + 4.10W 4.10W - 0 0 0 0 0 0
2 + 3.50W 3.50W - 0 0 0 0 0 0
3 - 0.0250W - - 3 3 3 3 5000 10000
4 - 0.0050W - - 4 4 4 4 3900 45700

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 2
1 - 4096 0 1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 42 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Read: 50’875’377 [26.0 TB]
Data Units Written: 49’987’853 [25.5 TB]
Host Read Commands: 483’239’411
Host Write Commands: 1’698’774’134
Controller Busy Time: 4’473
Power Cycles: 67
Power On Hours: 6’433
Unsafe Shutdowns: 35
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 3

Error Information (NVMe Log 0x01, 16 of 256 entries)
No Errors Logged

Self-test Log (NVMe Log 0x06)
Self-test status: No self-test in progress
No Self-tests Logged

0 comments on commit 0a242ce

Please sign in to comment.