2011-01-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: in function "format_for_graph" added the units "exa", "zetta" and "yotta". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e3b13ee1c2
commit
ca284c148a
|
@ -1,3 +1,8 @@
|
|||
2011-01-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions.php: in function "format_for_graph" added the units
|
||||
"exa", "zetta" and "yotta".
|
||||
|
||||
2010-01-17 Javier Lanz <javier.lanz@artica.es>
|
||||
|
||||
* trunk/pandora_console/include/functions_ui.php: Fixed an error in print_agent_name
|
||||
|
|
|
@ -249,7 +249,7 @@ function format_numeric ($number, $decimals = 1) {
|
|||
* @return string A string with the number and the multiplier
|
||||
*/
|
||||
function format_for_graph ($number , $decimals = 1, $dec_point = ".", $thousands_sep = ",") {
|
||||
$shorts = array ("","K","M","G","T","P");
|
||||
$shorts = array ("", "K", "M", "G", "T", "P", "E", "Z", "Y");
|
||||
$pos = 0;
|
||||
while ($number >= 1000) { //as long as the number can be divided by 1000
|
||||
$pos++; //Position in array starting with 0
|
||||
|
|
Loading…
Reference in New Issue