Skip to content

Commit

Permalink
Merge pull request #19 from realmgic/master
Browse files Browse the repository at this point in the history
fix bad microsecond histogram fix
  • Loading branch information
realmgic authored Oct 21, 2020
2 parents fb188e2 + 0d779bf commit 57449ba
Show file tree
Hide file tree
Showing 3 changed files with 2,205 additions and 7 deletions.
7 changes: 4 additions & 3 deletions make.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

set -x
set -e
set +x
set +e

cd $GOPATH/src/github.com/aerospike-community/amc

Expand All @@ -10,7 +10,8 @@ environ=${2:-dev}
platform=${3:-linux}
sysname=$(uname | tr '[:upper:]' '[:lower:]')

maintainer="Khosrow Afroozeh ([email protected])"
#maintainer="Khosrow Afroozeh ([email protected])"
maintainer="Zohar Elkayam ([email protected])"
description="Aerospike Management Console"

echo "platform is ${platform}"
Expand Down
9 changes: 5 additions & 4 deletions models/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,9 @@ func (n *Node) parseLatenciesInfo(s string) (map[string]common.Stats, map[string
if err != nil {
break
}
histUnit = "msec"

// log.Debugf("histUnit: %s", histUnit)
//log.Debugf("histUnit: %s", histUnit)

opsCount, err := ip.ReadFloat(',')
if err != nil {
Expand Down Expand Up @@ -1165,9 +1166,9 @@ func (n *Node) parseLatenciesInfo(s string) (map[string]common.Stats, map[string
timestamp += "-GMT"

stats := common.Stats{
"tps": opsCount,
"timestamp": timestamp,
//"histUnit": histUnit,
"tps": opsCount,
"timestamp": timestamp,
"histUnit": histUnit,
"buckets": buckets,
"valBuckets": valBucketsFloat,
}
Expand Down
Loading

0 comments on commit 57449ba

Please sign in to comment.