Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
corylanou committed Sep 15, 2015
1 parent e06d6e5 commit c70b503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (c *Client) SetAuth(u, p string) {

// SetPrecision will update the precision
func (c *Client) SetPrecision(precision string) {
c.precision = precision
c.precision = precision
}

// Query sends a command to the server and returns the Response
Expand Down
6 changes: 3 additions & 3 deletions cmd/influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ var (
const (
// defaultFormat is the default format of the results when issuing queries
defaultFormat = "column"
// defaultPrecision is the default timestamp format of the results when issuing queries

// defaultPrecision is the default timestamp format of the results when issuing queries
defaultPrecision = "ns"

// defaultPPS is the default points per second that the import will throttle at
Expand Down Expand Up @@ -371,7 +371,7 @@ func (c *CommandLine) SetPrecision(cmd string) {
cmd = strings.ToLower(cmd)

switch cmd {
case "h","m","s","ms","u","ns":
case "h", "m", "s", "ms", "u", "ns":
c.Precision = cmd
c.Client.SetPrecision(c.Precision)
case "rfc3339":
Expand Down

0 comments on commit c70b503

Please sign in to comment.