statblk 1.28__tar.gz → 1.29__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statblk
3
- Version: 1.28
3
+ Version: 1.29
4
4
  Summary: Gather essential disk and partition info for block devices and print it in a nice table
5
5
  Home-page: https://github.com/yufei-pan/statblk
6
6
  Author: Yufei Pan
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statblk
3
- Version: 1.28
3
+ Version: 1.29
4
4
  Summary: Gather essential disk and partition info for block devices and print it in a nice table
5
5
  Home-page: https://github.com/yufei-pan/statblk
6
6
  Author: Yufei Pan
@@ -10,11 +10,11 @@ import shutil
10
10
  import subprocess
11
11
  try:
12
12
  import multiCMD
13
- assert float(multiCMD.version) >= 1.35
13
+ assert float(multiCMD.version) >= 1.37
14
14
  except:
15
15
  import time,threading,io,sys,subprocess,select,string,re,itertools,signal
16
16
  class multiCMD:
17
- version='1.35_min_statblk'
17
+ version='1.37_min_statblk'
18
18
  __version__=version
19
19
  COMMIT_DATE='2025-09-10'
20
20
  __running_threads=set()
@@ -165,7 +165,7 @@ except:
165
165
  E=A
166
166
  def V(hdr,rows_):
167
167
  B=hdr;C=[0]*len(B)
168
- for A in range(len(B)):C[A]=max(J(B[A]),*(J(B[A])for B in rows_ if A<len(B)))
168
+ for A in range(len(B)):C[A]=max(0,J(B[A]),*(J(B[A])for B in rows_ if A<len(B)))
169
169
  return C
170
170
  P=[]
171
171
  for F in E:
@@ -277,7 +277,7 @@ except :
277
277
  def cache_decorator(func):
278
278
  return func
279
279
 
280
- version = '1.28'
280
+ version = '1.29'
281
281
  VERSION = version
282
282
  __version__ = version
283
283
  COMMIT_DATE = '2025-09-11'
@@ -537,7 +537,7 @@ def get_drives_info(print_bytes = False, use_1024 = False, mounted_only=False, b
537
537
  if parent_name:
538
538
  if parent_name not in smart_infos:
539
539
  smart_infos[parent_name] = multiCMD.run_command(f'{SMARTCTL_PATH} -H {parent_name}',timeout=2,quiet=True,wait_for_return=False,return_object=True)
540
- if ('READ' in output_fields_set or 'WRITE' in output_fields_set) and block_device not in tptDict:
540
+ if block_device not in tptDict:
541
541
  sysfs_block_path = os.path.join('/sys/class/block', os.path.basename(block_device))
542
542
  tptDict[block_device] = get_read_write_rate_throughput_iter(sysfs_block_path)
543
543
  mount_table = parseMount()
File without changes
File without changes
File without changes