<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=3497</link>
		<description><![CDATA[[처리됨] Needleworks.Function.Debug.php 수정바랍니다. 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Tue, 07 Aug 2007 15:37:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=19712#p19712</link>
			<description><![CDATA[<p><a href="http://dev.textcube.org/changeset/3884">3884</a> 에 반영하였습니다. 감사합니다.^^</p>]]></description>
			<author><![CDATA[null@example.com (inureyes)]]></author>
			<pubDate>Tue, 07 Aug 2007 15:37:07 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=19712#p19712</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=19593#p19593</link>
			<description><![CDATA[<p>생각해 보니 elapsed 타임이 0이 될 쿼리(캐쉬커리말고)가 있겠냐 만은...혹시나 해서 다시 소스 수정안을 내봅니다.</p><div class="codebox"><pre><code>    foreach( $__tcSqlLog as $c =&gt; $log ) {
        $elapsed[$count] = array( $log[&#039;elapsed&#039;], $count, $log[&#039;cached&#039;] ? &quot;cached&quot;:&quot;&quot; );
        $__tcSqlLog[$c][&#039;percent&#039;] = sprintf(&quot;%4.1f&quot;, $log[&#039;endtime&#039;]*100/$__tcPageEndTime);
        $count++;
    }

    arsort( $elapsed );
    $bgcolor = array();
    foreach( array_splice($elapsed,0,5) as $e ) {
        if($e[2] !=  &quot;cached&quot;)
            $top5[$e[1]] = true;
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (엽기민원)]]></author>
			<pubDate>Tue, 31 Jul 2007 05:28:37 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=19593#p19593</guid>
		</item>
		<item>
			<title><![CDATA[[처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=19590#p19590</link>
			<description><![CDATA[<p>Needleworks.Function.Debug.php를 써서 Debug 할때, 캐쉬되지 않는 쿼리가 5개이하일때 캐쉬되는 쿼리가 top5안에 들어오기도 합니다. 뭐 한페이지에 텍스트큐브에서 캐쉬되지 않은 쿼리가 설마 5개 이하일때가 있을지 모르지만...</p><p>암튼 이유는..</p><div class="codebox"><pre><code>    foreach( array_splice($elapsed,0,5) as $e ) {
        $top5[$e[1]] = true;
    }</code></pre></div><p>소팅한다음에 무조건 5개를 잡는데, 캐쉬는 elapsed 타임이 0이므로 가끔씩 캐쉬 쿼리가 top5에 올라오기도 하는 거죠..<br />그래서 다음과 같이 수정해야 할것 같습니다.</p><div class="codebox"><pre><code>    foreach( array_splice($elapsed,0,5) as $e ) {
        if($e[0] !=  0)
            $top5[$e[1]] = true;
    }</code></pre></div><p>^^</p>]]></description>
			<author><![CDATA[null@example.com (엽기민원)]]></author>
			<pubDate>Tue, 31 Jul 2007 05:19:03 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=19590#p19590</guid>
		</item>
	</channel>
</rss>
