Skip to content

Commit

Permalink
Merge pull request #19 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 3.0.2
  • Loading branch information
andyone authored Oct 20, 2018
2 parents 6f52cc6 + 395b52f commit 39f1478
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ sudo: required
language: go

go:
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- tip

os:
Expand Down
5 changes: 4 additions & 1 deletion common/redis-latency-monitor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Summary: Tiny Redis client for latency measurement
Name: redis-latency-monitor
Version: 3.0.1
Version: 3.0.2
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand Down Expand Up @@ -58,6 +58,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Sat Oct 20 2018 Anton Novojilov <[email protected]> - 3.0.2-0
- Show usage info if '-h' passed without any value

* Thu Dec 21 2017 Anton Novojilov <[email protected]> - 3.0.1-0
- Minor UI fixes

Expand Down
6 changes: 3 additions & 3 deletions redis-latency-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
// App info
const (
APP = "Redis Latency Monitor"
VER = "3.0.1"
VER = "3.0.2"
DESC = "Tiny Redis client for latency measurement"
)

Expand Down Expand Up @@ -64,7 +64,7 @@ const (

// optMap is map with options
var optMap = options.Map{
OPT_HOST: {Value: "127.0.0.1"},
OPT_HOST: {Type: options.MIXED, Value: "127.0.0.1"},
OPT_PORT: {Value: "6379"},
OPT_CONNECT: {Type: options.BOOL},
OPT_TIMEOUT: {Type: options.INT, Value: 3, Min: 1, Max: 300},
Expand Down Expand Up @@ -114,7 +114,7 @@ func main() {
return
}

if options.GetB(OPT_HELP) {
if options.GetB(OPT_HELP) || options.GetS(OPT_HOST) == "true" {
showUsage()
return
}
Expand Down

0 comments on commit 39f1478

Please sign in to comment.