Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: include/func.inc.php
- ===================================================================
- --- include/func.inc.php (revision 31288)
- +++ include/func.inc.php (working copy)
- @@ -538,16 +538,26 @@
- }
- switch ($units) {
- - case 'Bps':
- - case 'B':
- - $step = 1024;
- - $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- - break;
- - case 'b':
- - case 'bps':
- - $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- - default:
- - $step = 1000;
- + case 'Bps':
- + $step = 1024;
- + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- + $units = _x('Bps', 'Bytes per second');
- + break;
- + case 'B':
- + $step = 1024;
- + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- + $units = _x('B', 'Byte short');
- + break;
- + case 'b':
- + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- + $units = _x('b', 'Bite short');
- + $step = 1000;
- + break;
- + case 'bps':
- + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
- + $units = _x('bps', 'Bits per second');
- + default:
- + $step = 1000;
- }
- // init intervals
Advertisement
Add Comment
Please, Sign In to add comment