summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index d33fd7a..a7fc62c 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -93,12 +93,12 @@ struct tm* cmCTest::GetNightlyTime(std::string str,
std::cout << " Future time, subtract day: " << ntime << std::endl;
}
}
- if ( (tctime - ntime) > dayLength )
+ if ( tctime > (ntime + dayLength) )
{
ntime += dayLength;
if ( verbose )
{
- std::cout << " Past time, subtract day: " << ntime << std::endl;
+ std::cout << " Past time, add day: " << ntime << std::endl;
}
}
//std::cout << "nightlySeconds: " << ntime << std::endl;