You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/11/09 01:08:12 UTC
svn commit: r593367 - /incubator/stdcxx/trunk/bin/genxviews
Author: sebor
Date: Thu Nov 8 16:08:12 2007
New Revision: 593367
URL: http://svn.apache.org/viewvc?rev=593367&view=rev
Log:
2007-11-08 Martin Sebor <se...@roguewave.com>
* genxviews (processing_time): Tried to adjust for overflow.
Added processing of EDG eccp 3.9 results on Red Hat EL 5.0.
Modified:
incubator/stdcxx/trunk/bin/genxviews
Modified: incubator/stdcxx/trunk/bin/genxviews
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/bin/genxviews?rev=593367&r1=593366&r2=593367&view=diff
==============================================================================
--- incubator/stdcxx/trunk/bin/genxviews (original)
+++ incubator/stdcxx/trunk/bin/genxviews Thu Nov 8 16:08:12 2007
@@ -36,7 +36,9 @@
# start the clock measuring the amount of wall clock time to process
# all logs and generate the page
-processing_time=`expr \( $(date +%M) \* 60 \) + $(date +%S)`
+processing_time=`expr \( $(date +%H) \* 1440 \) \
+ + \( $(date +%M) \* 60 \) \
+ + $(date +%S)`
# process command line options
@@ -172,7 +174,14 @@
fi
# compute the number of seconds it took to process the logs
- duration=`expr \( \( $(date +%M) \* 60 \) + $(date +%S) \) - $duration`
+ end=`expr \( \( $(date +%M) \* 60 \) + $(date +%S) \)`
+
+ if [ $end -lt $duration ]; then
+ # adjust for overflow
+ end=`expr $end + 60`
+ fi
+
+ duration=`expr $end - $duration`
if [ $quiet -eq 0 ]; then
cat<<EOF
@@ -252,6 +261,10 @@
"linux_redhat_el-5.0-em64t-gcc-4.1.1-*-*-log.gz.txt" \
linux_redhat_el-5.0-em64t-gcc-4.1.1.html
+process_results "Red Hat EL 5.0" "EM64T" "EDG eccp 3.9" \
+ "linux_redhat_el-5.0-em64t-eccp-3.9-*-*-log.gz.txt" \
+ linux_redhat_el-5.0-em64t-eccp-3.9.html
+
process_results "Red Hat AS 4 Update 4" "AMD64" "gcc 3.4.6" \
"linux_redhat_el-4.4-amd64-gcc-3.4.6-*-*-log.gz.txt" \
linux_redhat_el-4.4-amd64-gcc-3.4.6.html
@@ -370,8 +383,16 @@
# compute the number of seconds it took to process all logs
-processing_time=`expr \( \( $(date +%M) \* 60 \) + $(date +%S) \) \
- - $processing_time`
+end_time=`expr \( $(date +%H) \* 1440 \) \
+ + \( $(date +%M) \* 60 \) \
+ + $(date +%S)`
+
+if [ $end_time -lt $processing_time ]; then
+ # adjust for overflow
+ end_time=`expr $end_time + 1440`
+fi
+
+processing_time=`expr $end_time - $processing_time`
cat<<EOF
</table>