Permalink
Browse files

fix removing multiple zeros from seconds string when calculating time…

… difference in installer, update #2634
  • Loading branch information...
1 parent cd31298 commit 314d53cd917cb8395f6631096e6eaab83e81eb65 @mpapis mpapis committed Feb 25, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/functions/installer
@@ -13,14 +13,14 @@ install_run_debug_time()
# split seconds and nano
__sn="${__ss#*:}"
__sn="${__sn#%N}"
- __sn="${__sn##0}"
+ __sn="${__sn##*(0)}"
__ss="${__ss%:*}"
- __ss="${__ss##0}"
+ __ss="${__ss##*(0)}"
__en="${__es#*:}"
__en="${__en#%N}"
- __en="${__en##0}"
+ __en="${__en##*(0)}"
__es="${__es%:*}"
- __es="${__es##0}"
+ __es="${__es##*(0)}"
__ds="$(( __es - __ss ))"
__dn=""

0 comments on commit 314d53c

Please sign in to comment.