aboutsummaryrefslogtreecommitdiff
path: root/src/viewerplainpct.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-04 00:07:51 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-04 00:07:51 +0000
commit9868a2005820a4291f97b3080168af39b429a03c (patch)
tree22302b3f3344c378fb530575fb4de8842a0f7681 /src/viewerplainpct.cpp
parent863a1f4ce1d7b70f9a73edb16b0de1c753087152 (diff)
downloadbuild-9868a2005820a4291f97b3080168af39b429a03c.tar.gz
build-9868a2005820a4291f97b3080168af39b429a03c.tar.bz2
build-9868a2005820a4291f97b3080168af39b429a03c.tar.xz
build-9868a2005820a4291f97b3080168af39b429a03c.zip
Getting closer to the percents making some damn sense.
Diffstat (limited to 'src/viewerplainpct.cpp')
-rw-r--r--src/viewerplainpct.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/viewerplainpct.cpp b/src/viewerplainpct.cpp
index a7baff1..dcf90ec 100644
--- a/src/viewerplainpct.cpp
+++ b/src/viewerplainpct.cpp
@@ -67,7 +67,15 @@ void ViewerPlainPct::beginRequiresCheck( bool bCached, const std::string &sName
67void ViewerPlainPct::endRequiresCheck() 67void ViewerPlainPct::endRequiresCheck()
68{ 68{
69 iCP++; 69 iCP++;
70 bDidReq = true; 70 //bDidReq = true;
71}
72
73void ViewerPlainPct::skipRequiresCheck( bool bCached, const std::string &sName )
74{
75 iCP++;
76/* printHead();
77 indent();
78 printf("[%3d%%] ! deps: %s\n", (int)round(((double)iCP/(double)iTP)*100.0), sName.c_str() );*/
71} 79}
72 80
73void ViewerPlainPct::beginPerform( Perform *pPerform ) 81void ViewerPlainPct::beginPerform( Perform *pPerform )
@@ -79,16 +87,24 @@ void ViewerPlainPct::beginPerform( Perform *pPerform )
79 87
80void ViewerPlainPct::endPerform() 88void ViewerPlainPct::endPerform()
81{ 89{
82 if(!bDidReq) 90 //if(!bDidReq)
83 iCP++; 91 iCP++;
84 bDidReq = false; 92 //bDidReq = false;
93}
94
95void ViewerPlainPct::skipPerform( Perform *pPerform )
96{
97 iCP++;
98/* printHead();
99 indent();
100 printf("[%3d%%] ! %8s: %s\n", (int)round(((double)iCP/(double)iTP)*100.0), pPerform->getRule().c_str(), pPerform->getTarget().c_str() );*/
85} 101}
86 102
87void ViewerPlainPct::beginPerforms( int nCount ) 103void ViewerPlainPct::beginPerforms( int nCount )
88{ 104{
89 iTP = nCount; 105 iTP = nCount*2;
90 iCP = 1; 106 iCP = 1;
91 bDidReq = false; 107 //bDidReq = false;
92} 108}
93 109
94void ViewerPlainPct::beginAction( const std::string &sName, int nCommands ) 110void ViewerPlainPct::beginAction( const std::string &sName, int nCommands )