Giter Site home page Giter Site logo

Comments (5)

feng99 avatar feng99 commented on June 2, 2024

另外一种 不太完美的方案
在页面输出的时候过滤
把小于0.1秒的删掉
在run.php文件中 index函数

//从53行开始

 $resArray = $result['results'];
        foreach ($resArray as $k=>&$v){
            $dataArray = $v->toArray();
            $wt = $dataArray['profile']['main()']['wt'];
            //100000 = 100毫秒 = 0.1秒
            if($wt < 100000){
                unset($resArray[$k]);
            }
        }


 $this->set(array(
            'paging' => $paging,
            'base_url' => 'home',
            'runs' => $resArray,
            'date_format' => $this->_app->config('date.format'),
            'search' => $search,
            'has_search' => strlen(implode('', $search)) > 0,
            'title' => $title
        ));


from xhgui-branch.

feng99 avatar feng99 commented on June 2, 2024

如果数字比较大 比如0.3秒 部分页面可能就空白了 因为一页 只有25条.

在数据插入到mongo前 过滤 是正确的方法
但是
我没找到那个汇总的wt时间 请问是怎么做的?

from xhgui-branch.

feng99 avatar feng99 commented on June 2, 2024

难道你把所有的函数wt执行时间,汇总在一起,然后报错到mongodb的?
为何打印插入mongodb前的$data看不到汇总的时间。

from xhgui-branch.

feng99 avatar feng99 commented on June 2, 2024

找到一个关键词
wall_times

from xhgui-branch.

feng99 avatar feng99 commented on June 2, 2024

我已经改好了 哈哈.

from xhgui-branch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.