Lines Matching refs:szB_scaled
258 my ($szB, $szB_scaled) = @_;
273 elsif ($szB_scaled < 10) { return sprintf("%5.3f", $szB_scaled); }
274 elsif ($szB_scaled < 100) { return sprintf("%5.2f", $szB_scaled); }
275 else { return sprintf("%5.1f", $szB_scaled); }
306 my $szB_scaled = $szB;
311 if ($szB_scaled >= 1000) { $unit = "KB"; $szB_scaled /= 1024; }
312 if ($szB_scaled >= 1000) { $unit = "MB"; $szB_scaled /= 1024; }
313 if ($szB_scaled >= 1000) { $unit = "GB"; $szB_scaled /= 1024; }
314 if ($szB_scaled >= 1000) { $unit = "TB"; $szB_scaled /= 1024; }
315 if ($szB_scaled >= 1000) { $unit = "PB"; $szB_scaled /= 1024; }
316 if ($szB_scaled >= 1000) { $unit = "EB"; $szB_scaled /= 1024; }
317 if ($szB_scaled >= 1000) { $unit = "ZB"; $szB_scaled /= 1024; }
318 if ($szB_scaled >= 1000) { $unit = "YB"; $szB_scaled /= 1024; }
320 return (max_label_2($szB, $szB_scaled), $unit);
331 my $szB_scaled = $szB;
333 if ($szB_scaled >= 1000) { $unit = "s"; $szB_scaled /= 1000; }
334 if ($szB_scaled >= 3600) { $unit = "h"; $szB_scaled /= 3600; }
336 return (max_label_2($szB, $szB_scaled), $unit);