Ignore:
Timestamp:
03/02/15 18:10:22 (8 years ago)
Author:
labetoulle
Message:
  • Process directory size without unit, => in bytes (from du -h)
  • Typos
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/gencmip6.py

    r2427 r2428  
    4343  """ 
    4444  """ 
     45  if unicode(x).isdecimal(): 
     46    x = x + "o" 
     47 
    4548  (size, unit) = (float(x[:-1]), x[-1]) 
     49 
    4650  return SizeUnit(size, unit) 
    4751 
     
    213217    """ 
    214218    """ 
    215     prefixes = ["K", "M", "G", "T", "P", "H"] 
     219    prefixes = ["o", "K", "M", "G", "T", "P", "H"] 
    216220 
    217221    if not self.size or \ 
Note: See TracChangeset for help on using the changeset viewer.