aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_packages.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-12-13 03:11:18 +1000
committerGravatar axel <axel@liljencrantz.se>2006-12-13 03:11:18 +1000
commitfd11f294bc0e1c35acae9e327026fdaa6b3546f9 (patch)
treecb317d9c0678e8d16e3a04f1ab352027d55ef870 /share/functions/__fish_print_packages.fish
parentb3fa76c1beac9719d97917361a9d7fde2d678300 (diff)
Use the math function instead of calling bc directly in various places
darcs-hash:20061212171118-ac50b-a40709edf008f3d725e3755d5282ae5a84818c88.gz
Diffstat (limited to 'share/functions/__fish_print_packages.fish')
-rw-r--r--share/functions/__fish_print_packages.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish
index 47f65dd3..fb24ffff 100644
--- a/share/functions/__fish_print_packages.fish
+++ b/share/functions/__fish_print_packages.fish
@@ -32,7 +32,7 @@ function __fish_print_packages
set cache_file /tmp/.rpm-cache.$USER
if test -f $cache_file
cat $cache_file
- set age (echo (date +%s) - (stat -c '%Y' $cache_file) | bc)
+ set age (math (date +%s) - (stat -c '%Y' $cache_file))
set max_age 250
if test $age -lt $max_age
return