Skip to content

Commit

Permalink
Fix prometheus metric sms_reader_sms_last_status
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Sep 6, 2020
1 parent 069511c commit f363c94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sms-modem-reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ func readSmsByTimer(so *sms.SmsOperator) {
so.Init()
continue
}

promReadSmsLastStatus.Set(0)

for k, v := range so.Messages {
log.Print(v)

Expand Down

0 comments on commit f363c94

Please sign in to comment.