Skip to content

Commit

Permalink
fix: lint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fblgit committed Oct 28, 2021
1 parent b0bbba3 commit 04b0973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ingress/metric/collectors/admission.go
Expand Up @@ -123,7 +123,7 @@ func (am AdmissionCollector) Collect(ch chan<- prometheus.Metric) {
am.admissionTime.Collect(ch)
}

// Formats humanReadable Bytes
// ByteFormat formats humanReadable bytes
func ByteFormat(bytes int64) string {
const unit = 1000
if bytes < unit {
Expand All @@ -138,7 +138,7 @@ func ByteFormat(bytes int64) string {
float64(bytes)/float64(div), "kMGTPE"[exp])
}

// Sets the values for AdmissionMetrics that can be called externally
// SetAdmissionMetrics sets the values for AdmissionMetrics that can be called externally
func (am *AdmissionCollector) SetAdmissionMetrics(testedIngressLength float64, testedIngressTime float64, renderingIngressLength float64, renderingIngressTime float64, testedConfigurationSize float64, admissionTime float64) {
am.testedIngressLength.Set(testedIngressLength)
am.testedIngressTime.Set(testedIngressTime)
Expand Down

0 comments on commit 04b0973

Please sign in to comment.