add -n check

This commit is contained in:
filifa 2024-03-19 20:31:32 -05:00
parent 66c1962999
commit 6f19d10fa0
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ func main() {
if *percent < 0 || *percent > 1 {
log.Fatal("invalid percentage")
} else if *nevents < 0 {
log.Fatal("number of events must be non-negative")
}
t := time.Now().Unix() - formula(*percent)