NetXMS Support Forum

English Support => General Support => Topic started by: mumme3 on February 21, 2020, 06:31:32 PM

Title: DCI values in links, as human readable?
Post by: mumme3 on February 21, 2020, 06:31:32 PM
First of all I would like to thank the NetXMS team for a fantastic piece of software! It's really good as an NMS. The object tools is a really nice feature that we use a lot.

We have built a map of our network topology. I have put the ifOctets DCI values of the links on the links on the maps. It works great but it's in Bytes/s. How to transform into more human readable form (kilo, Mega, Giga etc.) ?

Thanks,
Title: Re: DCI values in links, as human readable?
Post by: Filipp Sudanov on February 25, 2020, 06:40:18 PM
There's a field called Format string that accepts java8 format strings. And there's a custom thing - if there's * character after %, multiplier operation is done first and then format is applied.
So:
%*.2f will be the value with multiplier, having 2 signs after decimal

And the same input value can be even used twice:
%*1$.2f (%1$d b)
Title: Re: DCI values in links, as human readable?
Post by: mumme3 on February 27, 2020, 09:23:05 PM
That worked like charm. Thanks!  :)