StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
614 stars 150 forks source link

"+Infinity% trend" Graphic #227

Open estebanramos opened 3 years ago

estebanramos commented 3 years ago

I have my "Alerts trend" like this, is normal? I tried changing the time period but it's still the same. It is bugged? vvcap 2021-04-28-08-29-03

yodapotatofly commented 3 years ago

This is normal since previous period had 0 alerts. 1/0 is mathematically impossible but JavaScript evaluate it as Infinity, because when x tends toward 0, 1/x tends toward infinity.

estebanramos commented 3 years ago

What is considered as previous period?

yodapotatofly commented 3 years ago

a period is defined in the top menu image

previous period is simply the one period before the current one