Ñò >3Kc @ s d e f d „ ƒ YZ d S( t dstat_pluginc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Percentage of bandwidth utilization for block devices. Displays percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%. c C sP d | _ d | _ d | _ t i d ƒ | _ | i d ƒ d | _ d | _ d S( Nt fi i" s( ^(dm-[0-9]+|md[0-9]+|[hs]d[a-z]+[0-9]+)$s /proc/diskstatst utili ( R ( t typet widtht scalet ret compilet diskfiltert opent nickt cols( t self( ( s# /usr/share/dstat/dstat_disk_util.pyt __init__ s c G s£ g } xd | i ƒ D]V } t | ƒ d j o q n | d d g d j o q n | d } | i | ƒ q Wx | D] } | i | ƒ qt W| p t d ‚ n | S( Ni i t 0i i s* No suitable block devices found to monitor( t splitlinest lent appendt Exception( R t objlistt rett lt namet item( ( s# /usr/share/dstat/dstat_disk_util.pyt discover s c C sè g } t i o t i } n– g } g } t i d ƒ D] } | t i i | ƒ q7 ~ } xL | i D]A } | i i | ƒ o qc n | | j o qc n | i | ƒ qc W| i ƒ x/ | D]' } | | i j o | i | ƒ q¹ q¹ W| S( Ns /sys/block/*( t opt disklistt globt ost patht basenameR R t matchR t sort( R R t varlistt _[1]t filenamet blockdevicesR ( ( s# /usr/share/dstat/dstat_disk_util.pyt vars! s$ 6 c C s | i S( N( R% ( R ( ( s# /usr/share/dstat/dstat_disk_util.pyR 3 s c C s` x | i D] } d | i |