Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Sep 5, 2020
1 parent 66fa4f6 commit cb451d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/mt-write-delay-schema-explain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import (
)

var (
version = "(none)"
showVersion = flag.Bool("version", false, "print version string")
windowFactor = flag.Int("window-factor", 20, "size of compaction window relative to TTL")
interval = flag.Int("int", 0, "specify an interval to apply interval-based matching in addition to metric matching (e.g. to simulate kafka-mdm input)")
version = "(none)"
showVersion = flag.Bool("version", false, "print version string")
)

func init() {
Expand Down Expand Up @@ -82,6 +80,7 @@ func main() {
func showTime(t uint32) string {
return time.Unix(int64(t), 0).UTC().Format("2006-01-02 15:04:05")
}

func display(schema conf.Schema, lastDrain, now uint32) {
fmt.Println("#", schema.Name)
fmt.Printf("pattern: %10s\n", schema.Pattern)
Expand Down

0 comments on commit cb451d9

Please sign in to comment.