sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 503 forks source link

trap_rates.lua get value error #3219

Open inspurSDN opened 1 month ago

inspurSDN commented 1 month ago

why I did: If the SAI_COUNTER_STAT_PACKETS field in the COUNTERS table in the counter db is 0, it will be calculated as a Boolean value by trap_rates.lua, resulting in a script operation error.

what I did: Force in_pkts to be converted into a numerical value before operation