diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-04 00:07:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-04 00:07:51 +0000 |
commit | 9868a2005820a4291f97b3080168af39b429a03c (patch) | |
tree | 22302b3f3344c378fb530575fb4de8842a0f7681 /src/viewerplainpct.cpp | |
parent | 863a1f4ce1d7b70f9a73edb16b0de1c753087152 (diff) | |
download | build-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.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 ) |