Merge pull request #300 from nats-io/authorization

Authorization
This commit is contained in:
Derek Collison
2016-06-20 09:26:10 -07:00
committed by GitHub
16 changed files with 663 additions and 44 deletions

View File

@@ -119,7 +119,7 @@ func getCounterArrayData(counter PDH_HCOUNTER) ([]float64, error) {
var bufCount uint32
// Retrieving array data requires two calls, the first which
// requires an adressable empty buffer, and sets size fields.
// requires an addressable empty buffer, and sets size fields.
// The second call returns the data.
initialBuf := make([]PDH_FMT_COUNTERVALUE_ITEM_DOUBLE, 1)
ret := pdhGetFormattedCounterArrayDouble(counter, &bufSize, &bufCount, &initialBuf[0])