Skip to content

Commit

Permalink
Incorrect Conversion of months_previous to seconds (#75)
Browse files Browse the repository at this point in the history
* Incorrect Conversion of months_previous to seconds

* Updating CHANGELOG Entry
  • Loading branch information
guptaishabh authored and majormoses committed May 22, 2017
1 parent e877956 commit a547daa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
### Fixed
- Conversion of previous_months option to Seconds (@guptaishabh)

## [1.3.0] - 2017-05-08
### Fixed
- Use strict Base64 encoding to fix base64 encoding/netty issue (@msblum)
Expand Down
2 changes: 1 addition & 1 deletion bin/check-es-query-count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def kibana_info
start_time -= (config[:weeks_previous] * 60 * 60 * 24 * 7)
end
if config[:months_previous] != 0
start_time -= (config[:months_previous] * 60 * 60 * 24 * 7 * 31)
start_time -= (config[:months_previous] * 60 * 60 * 24 * 31)
end
"Kibana logs: #{config[:kibana_url]}/#/discover?_g=" \
"(refreshInterval:(display:Off,section:0,value:0),time:(from:'" \
Expand Down
2 changes: 1 addition & 1 deletion bin/check-es-query-ratio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def kibana_info
start_time -= (config[:weeks_previous] * 60 * 60 * 24 * 7)
end
if config[:months_previous] != 0
start_time -= (config[:months_previous] * 60 * 60 * 24 * 7 * 31)
start_time -= (config[:months_previous] * 60 * 60 * 24 * 31)
end
"Kibana logs: #{config[:kibana_url]}/#/discover?_g=" \
"(refreshInterval:(display:Off,section:0,value:0),time:(from:'" \
Expand Down

0 comments on commit a547daa

Please sign in to comment.