Merge pull request #486 from filecoin-project/fix/remove-height-tag
Remove height tag from stats tool
This commit is contained in:
commit
d774922374
@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
@ -94,7 +93,6 @@ func main() {
|
|||||||
// Instead of having to pass around a bunch of generic stuff we want for each point
|
// Instead of having to pass around a bunch of generic stuff we want for each point
|
||||||
// we will just add them at the end.
|
// we will just add them at the end.
|
||||||
|
|
||||||
tsHeight := fmt.Sprintf("%d", tipset.Height())
|
|
||||||
tsTimestamp := time.Unix(int64(tipset.MinTimestamp()), int64(0))
|
tsTimestamp := time.Unix(int64(tipset.MinTimestamp()), int64(0))
|
||||||
|
|
||||||
nb, err := InfluxNewBatch()
|
nb, err := InfluxNewBatch()
|
||||||
@ -103,7 +101,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, pt := range pl.Points() {
|
for _, pt := range pl.Points() {
|
||||||
pt.AddTag("height", tsHeight)
|
|
||||||
pt.SetTime(tsTimestamp)
|
pt.SetTime(tsTimestamp)
|
||||||
|
|
||||||
nb.AddPoint(NewPointFrom(pt))
|
nb.AddPoint(NewPointFrom(pt))
|
||||||
|
Loading…
Reference in New Issue
Block a user