mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix spelling mistakes in comments and descriptions
Thanks, codespell!
This commit is contained in:
parent
561da1a3f1
commit
8713eb3722
162 changed files with 248 additions and 248 deletions
|
@ -63,7 +63,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
@ -80,7 +80,7 @@ def list_pids():
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
for ( pid, name ) in vms.iteritems():
|
||||
( user, system ) = open("/proc/%s/stat" % pid, 'r').readline().split(' ')[13:15]
|
||||
|
|
|
@ -56,7 +56,7 @@ def clean_vm_name(vm_name):
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
res = {}
|
||||
for pid in vms:
|
||||
|
@ -80,7 +80,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -53,7 +53,7 @@ def clean_vm_name(vm_name):
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
res = {}
|
||||
for pid in vms:
|
||||
|
@ -77,7 +77,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -106,7 +106,7 @@ def clean_vm_name(vm_name):
|
|||
def fetch(vms):
|
||||
""" Fetch values for a list of pids
|
||||
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
"""
|
||||
for pid, vm_data in vms.items():
|
||||
vm_interface_names = get_vm_network_interface_names(pid)
|
||||
|
@ -149,7 +149,7 @@ def detect_kvm():
|
|||
def find_vm_names(pids):
|
||||
"""Find and clean vm names from pids
|
||||
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
"""
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -729,7 +729,7 @@ sub init() {
|
|||
|
||||
print $device . "_errs.label " . $device . "\n";
|
||||
print $device . "_errs.type COUNTER\n";
|
||||
print $device . "_errs.info The number of errors by " . $hash{$vm}{'name'} . " on defice " . $device . "\n";
|
||||
print $device . "_errs.info The number of errors by " . $hash{$vm}{'name'} . " on device " . $device . "\n";
|
||||
print $device . "_errs.min 0\n";
|
||||
print $device . "_errs.draw LINE2\n";
|
||||
}
|
||||
|
@ -1217,7 +1217,7 @@ sub read_diskstats{
|
|||
$res{'major'} = $rdev >> 8;
|
||||
$res{'minor'} = $rdev & 0xff;
|
||||
|
||||
# If major numer is 253, then proceed as dm-device
|
||||
# If major number is 253, then proceed as dm-device
|
||||
if($res{'major'} == 253){
|
||||
|
||||
# check that the directory /sys/block/dm-$minor/ exists with a /slaves/ sub directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue