Skip to content

Commit

Permalink
minor modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Ye committed Dec 18, 2016
1 parent 9dbbde3 commit 1d24343
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.12a
0.7.12b
4 changes: 2 additions & 2 deletions cluster/calcium/create_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *calcium) createContainerWithCPUPeriod(specs types.Specs, opts *types.De
log.Errorf("Got error %v after getCPUAndMem", err)
return ch, err
}
go utils.SendMemCap(cpuandmem, "before_alloc")
go utils.SendMemCap(cpuandmem, "before-alloc")
nodesInfo := utils.GetNodesInfo(cpuandmem)

cpuQuota := int(opts.CPUQuota * float64(utils.CpuPeriodBase))
Expand Down Expand Up @@ -195,7 +195,7 @@ func (c *calcium) doCreateContainerWithCPUPeriod(nodename string, connum int, qu
log.Errorf("Got error %v after getCPUAndMem", err)
return
}
utils.SendMemCap(cpuandmem, "after_alloc")
utils.SendMemCap(cpuandmem, "after-alloc")
}(opts.Podname, opts.Nodename)
return ms
}
Expand Down
1 change: 1 addition & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func SendMemCap(cpumemmap map[string]types.CPUAndMem, tag string) {
data[node] = float64(cpuandmem.MemCap)
}
host := os.Getenv("HOSTNAME")
log.Debugf("hostname: %s", host)
clean_host := strings.Replace(host, ".", "-", -1)
err := g.Statsd.Send(data, clean_host, tag)
if err != nil {
Expand Down

0 comments on commit 1d24343

Please sign in to comment.