Update spelling errors

This commit is contained in:
pSox 2022-11-17 14:07:58 +00:00
parent 7fda4c0761
commit babcedf827
2 changed files with 19 additions and 16 deletions

33
main.go
View File

@ -1,30 +1,33 @@
/*
Copyright 2022 Dolysis Consulting Limited
Copyright 2022 Dolysis Consulting Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
For changes see the git log
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For changes see the git log
*/
package main
import (
"flag"
"net/http"
"os"
"git.st8l.com/dolysis/cups-exporter/pkg"
"github.com/go-logr/logr"
"github.com/go-logr/zapr"
"git.st8l.com/dolysis/cups-exporter/pkg"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"go.uber.org/zap"
"net/http"
"os"
)
type options struct {
@ -60,7 +63,7 @@ func main() {
</body>
</html>`))
if err != nil {
log.Info("An error occured while writing http response: %v", err)
log.Info("An error occurred while writing http response: %v", err)
}
})

View File

@ -58,7 +58,7 @@ func (e *Exporter) jobsMetrics(ch chan<- prometheus.Metric) error {
if value <= 9 && value >= 3 {
states[value]++
} else {
e.log.Info("Unknow job state : " + strconv.Itoa(int(value)))
e.log.Info("Unknown job state : " + strconv.Itoa(int(value)))
}
} else {
e.log.Info("job state attribute missing")