Ticket #2: size-patch.diff

File size-patch.diff, 679 bytes (added by mhjacks@…, 3 years ago)

patch to megaclisas-status

  • megaclisas-status

    old new  
    5252        if re.match(r'^RAID Level:.*$',line.strip()): 
    5353            type = 'RAID'+line.strip().split(':')[1].split(',')[0].split('-')[1].strip() 
    5454        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() 
    5756        if re.match(r'^State:.*$',line.strip()): 
    5857            state = line.strip().split(':')[1].strip() 
    5958        if re.match(r'^Ongoing Progresses:.*$',line.strip()):