mirror of
https://github.com/tj/git-extras.git
synced 2026-09-15 01:46:25 -04:00
Merge pull request #446 from ssssam/fix-active-days
effort, summary: Correctly estimate the number of active days
This commit is contained in:
commit
f8b81131a5
|
|
@ -42,7 +42,7 @@ show_cursor_and_cleanup() {
|
|||
#
|
||||
|
||||
active_days() {
|
||||
echo "$1" | uniq | wc -l
|
||||
echo "$1" | sort -r | uniq | wc -l
|
||||
}
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ date() {
|
|||
#
|
||||
|
||||
active_days() {
|
||||
date $1 | uniq | awk '
|
||||
date $1 | sort -r | uniq | awk '
|
||||
{ sum += 1 }
|
||||
END { print sum }
|
||||
'
|
||||
|
|
|
|||
Loading…
Reference in a new issue