diff options
Diffstat (limited to '')
-rw-r--r-- | src/viewerplainpct.cpp | 26 |
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 | |||
67 | void ViewerPlainPct::endRequiresCheck() | 67 | void ViewerPlainPct::endRequiresCheck() |
68 | { | 68 | { |
69 | iCP++; | 69 | iCP++; |
70 | bDidReq = true; | 70 | //bDidReq = true; |
71 | } | ||
72 | |||
73 | void 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 | ||
73 | void ViewerPlainPct::beginPerform( Perform *pPerform ) | 81 | void ViewerPlainPct::beginPerform( Perform *pPerform ) |
@@ -79,16 +87,24 @@ void ViewerPlainPct::beginPerform( Perform *pPerform ) | |||
79 | 87 | ||
80 | void ViewerPlainPct::endPerform() | 88 | void ViewerPlainPct::endPerform() |
81 | { | 89 | { |
82 | if(!bDidReq) | 90 | //if(!bDidReq) |
83 | iCP++; | 91 | iCP++; |
84 | bDidReq = false; | 92 | //bDidReq = false; |
93 | } | ||
94 | |||
95 | void 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 | ||
87 | void ViewerPlainPct::beginPerforms( int nCount ) | 103 | void 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 | ||
94 | void ViewerPlainPct::beginAction( const std::string &sName, int nCommands ) | 110 | void ViewerPlainPct::beginAction( const std::string &sName, int nCommands ) |