Guest User

Untitled

a guest
Nov 11th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. Index: include/func.inc.php
  2.  
  3. ===================================================================
  4.  
  5. --- include/func.inc.php (revision 31288)
  6.  
  7. +++ include/func.inc.php (working copy)
  8.  
  9. @@ -538,16 +538,26 @@
  10.  
  11. }
  12.  
  13.  
  14.  
  15. switch ($units) {
  16.  
  17. - case 'Bps':
  18.  
  19. - case 'B':
  20.  
  21. - $step = 1024;
  22.  
  23. - $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  24.  
  25. - break;
  26.  
  27. - case 'b':
  28.  
  29. - case 'bps':
  30.  
  31. - $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  32.  
  33. - default:
  34.  
  35. - $step = 1000;
  36.  
  37. + case 'Bps':
  38.  
  39. + $step = 1024;
  40.  
  41. + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  42.  
  43. + $units = _x('Bps', 'Bytes per second');
  44.  
  45. + break;
  46.  
  47. + case 'B':
  48.  
  49. + $step = 1024;
  50.  
  51. + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  52.  
  53. + $units = _x('B', 'Byte short');
  54.  
  55. + break;
  56.  
  57. + case 'b':
  58.  
  59. + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  60.  
  61. + $units = _x('b', 'Bite short');
  62.  
  63. + $step = 1000;
  64.  
  65. + break;
  66.  
  67. + case 'bps':
  68.  
  69. + $convert = $convert ? $convert : ITEM_CONVERT_NO_UNITS;
  70.  
  71. + $units = _x('bps', 'Bits per second');
  72.  
  73. + default:
  74.  
  75. + $step = 1000;
  76.  
  77. }
  78.  
  79.  
  80.  
  81. // init intervals
Advertisement
Add Comment
Please, Sign In to add comment