We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f08e7f commit f1f113dCopy full SHA for f1f113d
1 file changed
z.sh
@@ -142,12 +142,12 @@ _z() {
142
function frecent(rank, time) {
143
# relate frequency and time
144
dx = t - time
145
- return rank * (3.75/((0.0001 * dx + 1) + 0.25))
+ return int(10000 * rank * (3.75/((0.0001 * dx + 1) + 0.25)))
146
}
147
function output(matches, best_match, common) {
148
# list or return the desired directory
149
if( list ) {
150
- cmd = "sort -g >&2"
+ cmd = "sort -n >&2"
151
for( x in matches ) {
152
if( matches[x] ) {
153
printf "%-10s %s\n", matches[x], x | cmd
0 commit comments