View Single Post
  #192 (permalink)  
Old 11-05-2009, 04:11 AM
liverpoolfcfan liverpoolfcfan is offline
Elite Member
 
Posts: 420
Default

For the bogus time reporting for durations over 1 hour changing "seconds" to "RUNTIME" in the 3rd last line should fix it.

Change

Code:
    # Script Timer
    STOPTIME=(`date +%s`)
    RUNTIME=$(expr $STOPTIME \- $STARTTIME)
    hours=$(($RUNTIME / 3600))
    seconds=$(($RUNTIME  % 3600))
    minutes=$(($RUNTIME  / 60))
    seconds=$(($RUNTIME  % 60))
to

Code:
    # Script Timer
    STOPTIME=(`date +%s`)
    RUNTIME=$(expr $STOPTIME \- $STARTTIME)
    hours=$(($RUNTIME / 3600))
    RUNTIME=$(($RUNTIME  % 3600))
    minutes=$(($RUNTIME  / 60))
    seconds=$(($RUNTIME  % 60))
Reply With Quote