commented out 'Name' variable in struct declaration

This commit is contained in:
aswhit1 2018-10-30 03:56:19 -04:00 committed by Calle Pettersson
parent 1fde8bae5b
commit 8ef341a51c

View File

@ -6,7 +6,6 @@ import (
"github.com/StackExchange/wmi"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/log"
"fmt"
)
func init() {
@ -56,10 +55,6 @@ type OS_MemoryCollector struct {
func NewOS_MemoryCollector() (Collector, error) {
const subsystem = "os_memory"
// for debugging only!
fmt.Println(Namespace)
fmt.Println(subsystem)
return &OS_MemoryCollector{
AvailableBytes: prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "available_bytes"),
@ -285,7 +280,10 @@ func (c *OS_MemoryCollector) Collect(ch chan<- prometheus.Metric) error {
}
type Win32_PerfRawData_PerfOS_Memory struct {
Name string
// This variable was apparently part of the class, but never filled,
// resulting in a runtime error
// Name string
AvailableBytes uint64
AvailableKBytes uint64