diff --git a/README b/README index e7963ff..778989a 100644 --- a/README +++ b/README @@ -70,8 +70,8 @@ NOTES Aging: The rank of directories maintained by z undergoes aging based on a sim- ple formula. The rank of each entry is incremented every time it is - accessed. When the sum of ranks is greater than 6000, all ranks are - multiplied by 0.99. Entries with a rank lower than 1 are forgotten. + accessed. When the sum of ranks is over 9000, all ranks are multiplied + by 0.99. Entries with a rank lower than 1 are forgotten. Frecency: Frecency is a portmanteau of 'recent' and 'frequency'. It is a weighted diff --git a/z.1 b/z.1 index 5cbf20d..bba9d78 100644 --- a/z.1 +++ b/z.1 @@ -96,8 +96,8 @@ Install the provided man page \fBz.1\fR somewhere like \fB/usr/local/man/man1\fR Aging: The rank of directories maintained by \fBz\fR undergoes aging based on a simple formula. The rank of each entry is incremented every time it is accessed. When -the sum of ranks is greater than 6000, all ranks are multiplied by 0.99. Entries -with a rank lower than 1 are forgotten. +the sum of ranks is over 9000, all ranks are multiplied by 0.99. Entries with a +rank lower than 1 are forgotten. .SS Frecency: Frecency is a portmanteau of 'recent' and 'frequency'. It is a weighted rank diff --git a/z.sh b/z.sh index 132904e..a8c6a89 100644 --- a/z.sh +++ b/z.sh @@ -69,7 +69,7 @@ _z() { count += $2 } END { - if( count > 6000 ) { + if( count > 9000 ) { # aging for( x in rank ) print x "|" 0.99*rank[x] "|" time[x] } else for( x in rank ) print x "|" rank[x] "|" time[x]