Skip to content

Commit

Permalink
Merge pull request #22 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 3.1.1
  • Loading branch information
andyone authored Oct 17, 2019
2 parents c573cda + bb22b0f commit 73eb30b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: go

go:
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- tip

os:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################################################################

# This Makefile generated by GoMakeGen 1.1.0 using next command:
# This Makefile generated by GoMakeGen 1.2.0 using next command:
# gomakegen .
#
# More info: https://kaos.sh/gomakegen
Expand All @@ -27,7 +27,7 @@ git-config: ## Configure git redirects for stable import path services
git config --global http.https://pkg.re.followRedirects true

deps: git-config ## Download dependencies
go get -d -v pkg.re/essentialkaos/ek.v10
go get -d -v pkg.re/essentialkaos/ek.v11

fmt: ## Format source code with gofmt
find . -name "*.go" -exec gofmt -s -w {} \;
Expand All @@ -40,6 +40,6 @@ help: ## Show this info
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-23s\033[0m %s\n", $$1, $$2}'
@echo -e ''
@echo -e '\033[90mGenerated by GoMakeGen 1.1.0\033[0m\n'
@echo -e '\033[90mGenerated by GoMakeGen 1.2.0\033[0m\n'

################################################################################
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Before the initial install allows git to use redirects for [pkg.re](https://gith
git config --global http.https://pkg.re.followRedirects true
```

To build the `redis-latency-monitor` from scratch, make sure you have a working Go 1.10+ workspace (_[instructions](https://golang.org/doc/install)_), then:
To build the `redis-latency-monitor` from scratch, make sure you have a working Go 1.11+ workspace (_[instructions](https://golang.org/doc/install)_), then:

```
go get github.com/essentialkaos/redis-latency-monitor
Expand Down
7 changes: 5 additions & 2 deletions 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.1.0
Version: 3.1.1
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand All @@ -20,7 +20,7 @@ Source0: https://source.kaos.st/%{name}/%{name}-%{version}.tar.bz2

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: golang >= 1.12
BuildRequires: golang >= 1.13

Provides: %{name} = %{version}-%{release}

Expand Down Expand Up @@ -86,6 +86,9 @@ fi
################################################################################

%changelog
* Thu Oct 17 2019 Anton Novojilov <[email protected]> - 3.1.1-0
- ek package updated to the latest stable version

* Thu Jun 13 2019 Anton Novojilov <[email protected]> - 3.1.0-0
- ek package updated to the latest stable version
- Added completion generation for bash, zsh and fish
Expand Down
28 changes: 14 additions & 14 deletions redis-latency-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2009-2018 ESSENTIAL KAOS //
// Copyright (c) 2009-2019 ESSENTIAL KAOS //
// Essential Kaos Open Source License <https://essentialkaos.com/ekol> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //
Expand All @@ -17,17 +17,17 @@ import (
"strings"
"time"

"pkg.re/essentialkaos/ek.v10/fmtc"
"pkg.re/essentialkaos/ek.v10/fmtutil"
"pkg.re/essentialkaos/ek.v10/fmtutil/table"
"pkg.re/essentialkaos/ek.v10/log"
"pkg.re/essentialkaos/ek.v10/mathutil"
"pkg.re/essentialkaos/ek.v10/options"
"pkg.re/essentialkaos/ek.v10/timeutil"
"pkg.re/essentialkaos/ek.v10/usage"
"pkg.re/essentialkaos/ek.v10/usage/completion/bash"
"pkg.re/essentialkaos/ek.v10/usage/completion/fish"
"pkg.re/essentialkaos/ek.v10/usage/completion/zsh"
"pkg.re/essentialkaos/ek.v11/fmtc"
"pkg.re/essentialkaos/ek.v11/fmtutil"
"pkg.re/essentialkaos/ek.v11/fmtutil/table"
"pkg.re/essentialkaos/ek.v11/log"
"pkg.re/essentialkaos/ek.v11/mathutil"
"pkg.re/essentialkaos/ek.v11/options"
"pkg.re/essentialkaos/ek.v11/timeutil"
"pkg.re/essentialkaos/ek.v11/usage"
"pkg.re/essentialkaos/ek.v11/usage/completion/bash"
"pkg.re/essentialkaos/ek.v11/usage/completion/fish"
"pkg.re/essentialkaos/ek.v11/usage/completion/zsh"

"github.com/essentialkaos/redis-latency-monitor/stats"
)
Expand All @@ -37,7 +37,7 @@ import (
// App info
const (
APP = "Redis Latency Monitor"
VER = "3.1.0"
VER = "3.1.1"
DESC = "Tiny Redis client for latency measurement"
)

Expand Down Expand Up @@ -489,7 +489,7 @@ func showUsage() {
func genUsage() *usage.Info {
info := usage.NewInfo("")

info.AddSpoiler("Utility show PING command latency or connection latency in milliseconds (one thousandth of a second).")
info.AddSpoiler("Utility shows PING command latency or connection latency in milliseconds (one thousandth of a second).")

info.AddOption(OPT_HOST, "Server hostname {s-}(127.0.0.1 by default){!}", "ip/host")
info.AddOption(OPT_PORT, "Server port {s-}(6379 by default){!}", "port")
Expand Down

0 comments on commit 73eb30b

Please sign in to comment.