Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix for domain memory stats #38 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandlbn authored Feb 16, 2017
1 parent 7635a8d commit 674c33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libvirt/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func GetVCPUStatistics(domain libvirt.VirDomain) (map[string]int64, error) {
//GetMemoryStatistics returns Libvirt memory statistics
func GetMemoryStatistics(domain libvirt.VirDomain, tags ...string) (map[string]int64, error) {
retValue := make(map[string]int64)
info, err := domain.MemoryStats(5, 0)
info, err := domain.MemoryStats(9, 0)
if err != nil {
return retValue, err
}
Expand Down
2 changes: 1 addition & 1 deletion libvirtcollector/libvirtcollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
// Plugin plugin name
Plugin = "libvirt"
// Version of plugin
Version = 11
Version = 12
nsDomainPosition = 2
nsMetricPostion = 3
nsDevicePosition = 4
Expand Down

0 comments on commit 674c33a

Please sign in to comment.