| Server IP : 172.67.216.113 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/task/2388322/cwd/sharedjs/ |
Upload File : |
(function(window){"use strict";var max_number_divisions={1:5,1.2:4,1.5:5,1.6:4,2:5,2.5:5,3:3,4:4,5:5,6:3,8:4,9:3};var max_numbers=Object.keys(max_number_divisions).sort().map(Number);function get_tick_values_for_format_bytes(highest_datum){var ticks=[0];if(highest_datum<3){ticks.push(1);if(highest_datum>1){ticks.push(2)}}else{var max_tick;var binary_power=0;var base_max_number,binary_multiple,decimal_multiple;TICK_LOOP:while(!max_tick){binary_multiple=Math.pow(1024,binary_power);for(var dec=0;dec<=3;dec++){decimal_multiple=Math.pow(10,dec);var multiple=binary_multiple*decimal_multiple;for(var m=0;m<max_numbers.length;m++){base_max_number=max_numbers[m];var maybe_max_tick=multiple*base_max_number;if(dec===3&&maybe_max_tick!==1e3){continue}if(maybe_max_tick>=highest_datum){max_tick=maybe_max_tick;break TICK_LOOP}}}binary_power++;if(binary_power>10){throw"Excessive power of 1,024: "+binary_power}}var tick_count=max_number_divisions[base_max_number];var base_tick_interval=base_max_number/tick_count;var format_bytes_number=max_tick/binary_multiple;for(var t=1;t<tick_count;t++){var new_tick;if(format_bytes_number<10&&max_tick>1e3&&t*base_tick_interval<1){new_tick=t*base_tick_interval*10*100*Math.pow(1024,binary_power-1)}else{new_tick=t*max_tick/tick_count}ticks.push(new_tick)}ticks.push(max_tick)}return ticks}window.Chart_Utilities={get_tick_values_for_format_bytes:get_tick_values_for_format_bytes}})(window);