Changeset 18470 for trunk/DataCheck


Ignore:
Timestamp:
04/22/16 21:18:14 (9 years ago)
Author:
Daniela Dorner
Message:
fixed but in getdates()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r18422 r18470  
    524524      +[1-9])
    525525         # get next n nights
    526          printprocesslog "DEBUG getdates - get the next "$1" days."
     526         printprocesslog "DEBUG getdates - get the next "$1" days (incl today)."
    527527         for (( numdates=1 ; numdates <= $1 ; numdates++ ))
    528528         do
    529             numhours=`echo " 12 + ( $numdates - 1 ) * 24 " | bc -l`
     529            numhours=`echo " 0 + ( $numdates - 1 ) * 24 " | bc -l`
    530530            dates=( ${dates[@]} `date +%Y/%m/%d --date="+"$numhours"hour"` )
    531531         done
Note: See TracChangeset for help on using the changeset viewer.