Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "LOG-6073 Add default value for count search" #130

Merged
merged 1 commit into from Mar 6, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Revert "LOG-6073 Add default value for count search"

This reverts commit e05e977.
  • Loading branch information
jirka-kruml committed Mar 5, 2020
commit 101ef9547a4d58b9f691fff4a1b90d9c029ee4a6
@@ -898,12 +898,6 @@ searchAndFetch() {
result=$(curl -s -u $LOGGLY_USERNAME:$LOGGLY_PASSWORD $url)
count=$(echo "$result" | grep total_events | awk '{print $2}')
count="${count%\,}"

# If no result is fetched, return 0
isNumberRegex='^[0-9]+$'
if ! [[ $count =~ $isNumberRegex ]] ; then
count=0
fi
eval $1="'$count'"
if [ "$count" -gt 0 ]; then
timestamp=$(echo "$result" | grep timestamp)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.