NetXMS Support Forum

English Support => General Support => Topic started by: gkaudewitz on March 19, 2019, 03:58:57 PM

Title: Different behaviour format strings
Post by: gkaudewitz on March 19, 2019, 03:58:57 PM
Hello together,
Currently using Version 2.0.5 in production I have a map with a DCI container in it. DCI-Container is filled with values from a portchannel traffic counters. The values are formatted with "%*dbit/s" and I get a clean value with "638Kbit/s" or "673Mbit/s".
Using same formatstring with version 2.2.11 I get an errormessage "<INVALID FORMAT> /%d)bit/s". Only formatting with "%dbit/s" works but that gives me the raw value like "622600bit/s".
Has something changed concerning outputformatting or is there an error with my format string.
It would be great to have same output in version 2.2.11 as in 2.0.5 because it is much easier to read.
Best regards
Georg
Title: Re: Different behaviour format strings
Post by: Tatjana Dubrovica on March 20, 2019, 02:48:21 PM
We will fix it in the next release, but currently you can use one of next options, depending on number of characters you want to have after the dot:
%*.0f bit/s
%*f bit/s
%*s bit/s
Title: Re: Different behaviour format strings
Post by: gkaudewitz on March 20, 2019, 03:42:46 PM
Thanks that works fine!