Ticket #2: size-patch.diff
| File size-patch.diff, 679 bytes (added by mhjacks@…, 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 size = line.strip().split(':')[1].strip() 57 56 if re.match(r'^State:.*$',line.strip()): 58 57 state = line.strip().split(':')[1].strip() 59 58 if re.match(r'^Ongoing Progresses:.*$',line.strip()):


