NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Different behaviour format strings  (Read 196 times)

gkaudewitz

  • Newbie
  • *
  • Posts: 42
    • View Profile
Different behaviour format strings
« 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
Logged

Tatjana Dubrovica

  • Global Moderator
  • Full Member
  • *****
  • Posts: 225
    • View Profile
Re: Different behaviour format strings
« Reply #1 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
Logged

gkaudewitz

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Different behaviour format strings
« Reply #2 on: March 20, 2019, 03:42:46 pm »

Thanks that works fine!
Logged