Ticket #2: megaclisas-status.diff
| File megaclisas-status.diff, 985 bytes (added by gandalf, 3 years ago) |
|---|
-
megaclisas-status
old new 52 52 if re.match(r'^RAID Level:.*$',line.strip()): 53 53 type = 'RAID'+line.strip().split(':')[1].split(',')[0].split('-')[1].strip() 54 54 if re.match(r'^Size:.*$',line.strip()): 55 size = line.strip().split(':')[1].strip('MB').strip() 56 size = str(int(round((float(size) / 1000))))+'G' 55 if re.match(r'^.*MB$',line.strip().split(':')[1]): 56 size = line.strip().split(':')[1].strip('MB').strip() 57 size = str(int(round((float(size) / 1000))))+'G' 58 else: 59 size = line.strip().split(':')[1].strip('GB').strip() 60 size = str(int(round((float(size)))))+'G' 57 61 if re.match(r'^State:.*$',line.strip()): 58 62 state = line.strip().split(':')[1].strip() 59 63 if re.match(r'^Ongoing Progresses:.*$',line.strip()):


