Skip to content

Commit

Permalink
Added oss to the appropriate locations to identify the oss platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed Feb 27, 2018
1 parent 320de87 commit 55bbba2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/v1/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2329,6 +2329,7 @@ type DebugVars struct {
NumTasks int `json:"num_tasks"`
Memstats map[string]interface{} `json:"memstats"`
Version string `json:"version"`
Product string `json:"product"`
}

type Stat struct {
Expand Down
3 changes: 2 additions & 1 deletion cmd/kapacitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2151,6 +2151,7 @@ func doStats(args []string) error {
fmt.Fprintf(os.Stdout, outFmtNum, "Tasks:", vars.NumTasks)
fmt.Fprintf(os.Stdout, outFmtNum, "Enabled Tasks:", vars.NumEnabledTasks)
fmt.Fprintf(os.Stdout, outFmtNum, "Subscriptions:", vars.NumSubscriptions)
fmt.Fprintf(os.Stdout, outFmtStr, "Product:", vars.Product)
fmt.Fprintf(os.Stdout, outFmtStr, "Version:", vars.Version)
case "ingress":
maxDB := 8 // len("Database")
Expand Down Expand Up @@ -2219,7 +2220,7 @@ func versionUsage() {
}

func doVersion(args []string) error {
fmt.Fprintf(os.Stdout, "Kapacitor %s (git: %s %s)\n", version, branch, commit)
fmt.Fprintf(os.Stdout, "Kapacitor oss %s (git: %s %s)\n", version, branch, commit)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/kapacitord/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (cmd *VersionCommand) Run(args ...string) error {
}

// Print version info.
fmt.Fprintf(cmd.Stdout, "Kapacitor %s (git: %s %s)\n", version, branch, commit)
fmt.Fprintf(cmd.Stdout, "Kapacitor oss version %s (git: %s %s)\n", version, branch, commit)

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion server/vars/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
UptimeVarName = "uptime"

// The name of the product
Product = "kapacitor"
Product = "kapacitor oss"
)

var (
Expand Down

0 comments on commit 55bbba2

Please sign in to comment.