free space value

Started by lindeamon, August 28, 2011, 12:53:48 PM

Previous topic - Next topic

lindeamon

hi,

i want to make a dci which will check free space and in the value output i will see
xx GB

i have created such dci and in the transformation tab i have taken the output and divided it 3 times by 1024 to get the value in GB but i have not managed to display it along with the text GB in

help please
10x,
lindeamon

Victor Kirhenshtein

Hi!

So you wish to get something like "4.05 GB" instead of "4348654387"? Then your transformation script should looks like following:


($1 / 1024 / 1024 / 1024) . " GB"


And don't forget to change DCI type to "string"!

Best regards,
Victor

lindeamon

10x victor,

works like a charm.