Skip to content

Commit

Permalink
Merge pull request #10 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.2.1
  • Loading branch information
andyone authored Sep 19, 2018
2 parents afade90 + 7949b10 commit ac61d2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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-monitor-top.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Summary: Tiny Redis client for monitor command output top
Name: redis-monitor-top
Version: 1.2.0
Version: 1.2.1
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand Down Expand Up @@ -57,6 +57,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Wed Sep 19 2018 Anton Novojilov <[email protected]> - 1.2.1-0
- Code refactoring

* Tue Oct 03 2017 Anton Novojilov <[email protected]> - 1.2.0-0
- Fixed bug with processing custom MONITOR command name
- Improved float output in RPS
Expand Down
6 changes: 2 additions & 4 deletions redis-monitor-top.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

const (
APP = "Redis Monitor Top"
VER = "1.2.0"
VER = "1.2.1"
DESC = "Tiny Redis client for aggregating stats from MONITOR flow"
)

Expand Down Expand Up @@ -213,9 +213,7 @@ func printStats() {
t.SetSizes(20, 10, 10)
t.SetAlignments(table.ALIGN_RIGHT, table.ALIGN_RIGHT, table.ALIGN_RIGHT)

for {
time.Sleep(time.Millisecond * 250)

for range time.NewTicker(time.Millisecond * 250).C {
if time.Since(last) >= interval {
renderStats(t)
last = time.Now()
Expand Down

0 comments on commit ac61d2a

Please sign in to comment.