Skip to content

Commit

Permalink
Merge pull request #446 from ssssam/fix-active-days
Browse files Browse the repository at this point in the history
effort, summary: Correctly estimate the number of active days
  • Loading branch information
hemanth committed Sep 22, 2015
2 parents 60098c9 + 6a000ec commit f8b8113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/git-effort
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ show_cursor_and_cleanup() {
#

active_days() {
echo "$1" | uniq | wc -l
echo "$1" | sort -r | uniq | wc -l
}

#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-summary
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ date() {
#

active_days() {
date $1 | uniq | awk '
date $1 | sort -r | uniq | awk '
{ sum += 1 }
END { print sum }
'
Expand Down

0 comments on commit f8b8113

Please sign in to comment.