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:
mdtrooper 2011-01-18 14:00:38 +00:00
parent e3b13ee1c2
commit ca284c148a
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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