Skip to content

Commit 57449ba

Browse files
authored
Merge pull request #19 from realmgic/master
fix bad microsecond histogram fix
2 parents fb188e2 + 0d779bf commit 57449ba

File tree

3 files changed

+2205
-7
lines changed

3 files changed

+2205
-7
lines changed

make.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

3-
set -x
4-
set -e
3+
set +x
4+
set +e
55

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

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

13-
maintainer="Khosrow Afroozeh ([email protected])"
13+
#maintainer="Khosrow Afroozeh ([email protected])"
14+
maintainer="Zohar Elkayam ([email protected])"
1415
description="Aerospike Management Console"
1516

1617
echo "platform is ${platform}"

models/node.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,9 @@ func (n *Node) parseLatenciesInfo(s string) (map[string]common.Stats, map[string
11201120
if err != nil {
11211121
break
11221122
}
1123+
histUnit = "msec"
11231124

1124-
// log.Debugf("histUnit: %s", histUnit)
1125+
//log.Debugf("histUnit: %s", histUnit)
11251126

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

11671168
stats := common.Stats{
1168-
"tps": opsCount,
1169-
"timestamp": timestamp,
1170-
//"histUnit": histUnit,
1169+
"tps": opsCount,
1170+
"timestamp": timestamp,
1171+
"histUnit": histUnit,
11711172
"buckets": buckets,
11721173
"valBuckets": valBucketsFloat,
11731174
}

0 commit comments

Comments
 (0)