Additional comments; pointer use where possible
This commit is contained in:
parent
b86fdf53b9
commit
cdcb18821f
3 changed files with 41 additions and 16 deletions
cmd/check_ssl_certificate
|
@ -110,8 +110,7 @@ func main() {
|
|||
p.SetState(plugin.OK, fmt.Sprintf("certificate will expire in %d days", tlDays))
|
||||
}
|
||||
|
||||
var pdat perfdata.PerfData
|
||||
pdat = perfdata.New("validity", perfdata.UOM_NONE, fmt.Sprintf("%d", tlDays))
|
||||
pdat := perfdata.New("validity", perfdata.UOM_NONE, fmt.Sprintf("%d", tlDays))
|
||||
if flags.crit > 0 {
|
||||
pdat.SetCrit(perfdata.PDRMax(fmt.Sprint(flags.crit)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue