]> git.stg.codes - stg.git/blobdiff - projects/stargazer/scripts/clean_db
Fix trailing whitespaces.
[stg.git] / projects / stargazer / scripts / clean_db
index 31a85a97434c8fad5a64fd18bfb18e09dc0a58cd..81f6011d2c28bf00f4c4a7113491169d867cfd61 100755 (executable)
@@ -26,12 +26,12 @@ do
     for ys in $usr/detail_stat/*
     do
        year=`basename $ys`
     for ys in $usr/detail_stat/*
     do
        year=`basename $ys`
-       
+
        for ms in $ys/*
        do
            month=`basename $ms`
        for ms in $ys/*
        do
            month=`basename $ms`
-            stat_time=`date --date="$year/$month/01" +%s`          
-           
+            stat_time=`date --date="$year/$month/01" +%s`
+
            if (( $NOW - $stat_time > $DT ))
            then
                rm -fr $ms
            if (( $NOW - $stat_time > $DT ))
            then
                rm -fr $ms