Sophie Hirn 2 years ago
parent
commit
d09d7a1e40
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      prim/.config/todo/sort

+ 5
- 6
prim/.config/todo/sort View File

@@ -1,10 +1,9 @@
#!/bin/bash

weight_age=1
weight_age_base=30
weight_prio=4
weight_due=0
weight_overdue=20000
weight_prio=3
weight_due=100
weight_overdue=1000

datefmt="[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"
# 2:compl 4:compl/creat date 6: body
@@ -139,10 +138,10 @@ function rating() {
fi
echo "sched_left:$left/$period"
else
due_fact=0
due_fact=100
fi

local prio=$(((weight_age_base + age) * prio_mult + due_fact))
local prio=$(((weight_age_base + age) * prio_mult * due_fact))
echo "sched_prio:$prio"
echo "$prio"
}

Loading…
Cancel
Save