statblk 1.25__tar.gz → 1.26__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.25
3
+ Version: 1.26
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.25
3
+ Version: 1.26
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
@@ -139,6 +139,10 @@ except:
139
139
  elif return_object:return A
140
140
  elif with_stdErr:return[A.stdout+A.stderr for A in A]
141
141
  else:return[A.stdout for A in A]
142
+ def join_threads(threads=...,timeout=None):
143
+ A=multiCMD.__running_threads if threads is ... else threads
144
+ for B in A:B.join(timeout=timeout)
145
+ if A is multiCMD.__running_threads:multiCMD.__running_threads={A for A in A if A.is_alive()}
142
146
  def pretty_format_table(data,delimiter='\t',header=None,full=False):
143
147
  O=delimiter;B=header;A=data;import re;S=1.12;Z=S
144
148
  def J(s):return len(re.sub('\\x1b\\[[0-?]*[ -/]*[@-~]','',s))
@@ -276,7 +280,7 @@ except :
276
280
  def cache_decorator(func):
277
281
  return func
278
282
 
279
- version = '1.25'
283
+ version = '1.26'
280
284
  VERSION = version
281
285
  __version__ = version
282
286
  COMMIT_DATE = '2025-09-10'
@@ -637,6 +641,7 @@ def get_drives_info(print_bytes = False, use_1024 = False, mounted_only=False, b
637
641
  if not full:
638
642
  device_name = device_name.replace('/dev/', '')
639
643
  output.append([device_name, fstype, size, fsusepct, mountpoint, smart, label, uuid, model, serial, discard, rtpt, wtpt])
644
+ multiCMD.join_threads()
640
645
  return output
641
646
 
642
647
 
File without changes
File without changes
File without changes