Skip to content

Commit

Permalink
rebase to v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liubog2008 committed Nov 6, 2016
1 parent b2a0e2e commit 9e81293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/sources/caicloud/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *caicloudMetricsSource) ScrapeMetrics(start, end time.Time) *DataBatch {
var cpuLimit int64 = int64(machineInfo.NumCores) * 1000

s.addIntMetric(metricSet, &MetricCpuLimit, cpuLimit)
s.addIntMetric(metricSet, &MetricMemoryLimit, machineInfo.MemoryCapacity)
s.addIntMetric(metricSet, &MetricMemoryLimit, int64(machineInfo.MemoryCapacity))
if s.node.Unschedulable {
s.addIntMetric(metricSet, &caicloudcore.MetricCpuAvailable, 0)
s.addIntMetric(metricSet, &caicloudcore.MetricMemoryAvailable, 0)
Expand Down

0 comments on commit 9e81293

Please # to comment.