Merge pull request #486 from filecoin-project/fix/remove-height-tag

Remove height tag from stats tool
This commit is contained in:
Łukasz Magiera 2019-10-28 22:06:26 +01:00 committed by GitHub
commit d774922374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@ package main
import (
"context"
"flag"
"fmt"
"log"
"os"
"time"
@ -94,7 +93,6 @@ func main() {
// Instead of having to pass around a bunch of generic stuff we want for each point
// we will just add them at the end.
tsHeight := fmt.Sprintf("%d", tipset.Height())
tsTimestamp := time.Unix(int64(tipset.MinTimestamp()), int64(0))
nb, err := InfluxNewBatch()
@ -103,7 +101,6 @@ func main() {
}
for _, pt := range pl.Points() {
pt.AddTag("height", tsHeight)
pt.SetTime(tsTimestamp)
nb.AddPoint(NewPointFrom(pt))