Searched refs:units (Results 1 - 3 of 3) sorted by relevance

/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/misc/
H A DDataSizeUtil.java72 * @param units
73 * a String array of the units to be shown after the
86 * If null, the default units will be used.
89 * a string from the units array to force the use of
97 long bytes, int precision, String[] units, String unit) {
99 if (units == null) {
100 units = getDefaultUnits();
115 // Determine which units to use
123 for (i = 0; i < units.length; i++) {
126 if (i == units
96 getDataSize( long bytes, int precision, String[] units, String unit) argument
189 getHumanReadableDataSize( long bytes, int precision, boolean forcePrecision, String[] units, String unit, boolean addSpace, boolean useCommas) argument
252 parseHumanReadableDataSize( String text, String[] units, int defaultUnitIndex) argument
[all...]
/solaris-userland-s11u3/components/openstack/cinder/files/solaris/
H A Dnfs.py26 from oslo_utils import units namespace
81 stats['total_capacity_gb'] = global_capacity / float(units.Gi)
82 stats['free_capacity_gb'] = global_free / float(units.Gi)
95 block_count = size * units.Gi / (block_size_mb * units.Mi)
/solaris-userland-s11u3/components/openstack/cinder/files/zfssa/
H A Dzfssaiscsi.py22 from oslo_utils import units namespace
295 if not self._verify_clone_size(snapshot, volume['size'] * units.Gi):
329 data['total_capacity_gb'] = int(total) / units.Gi
330 data['free_capacity_gb'] = int(avail) / units.Gi
364 volsize=new_size * units.Gi)

Completed in 15 milliseconds