Giter VIP home page Giter VIP logo

workerman-statistics's Issues

php7 Modules/main.php bug fix

202a203,206


     // init statistic
     if (!isset(\Statistics\Lib\Cache::$statisticDataCache['statistic'][$ip])) {
         \Statistics\Lib\Cache::$statisticDataCache['statistic'] = array();
     }

222c226


     $time_line = ceil($time_line/300)*300;
     $time_line = intval(ceil($time_line/300)*300);

232,235c236,239


     $st_data[$time_line]['suc_count'] += $suc_count;
     $st_data[$time_line]['suc_cost_time'] += $suc_cost_time;
     $st_data[$time_line]['fail_count'] += $fail_count;
     $st_data[$time_line]['fail_cost_time'] += $fail_cost_time;

     $st_data[$time_line]['suc_count'] += intval($suc_count);
     $st_data[$time_line]['suc_cost_time'] += intval($suc_cost_time);
     $st_data[$time_line]['fail_count'] += intval($fail_count);
     $st_data[$time_line]['fail_cost_time'] += intval($fail_cost_time);`

关于文件系统存储

我对这个很统计上报很感兴趣,我看是文件系统存储的,有性能测试么,是否考虑用mysql或者什么替换掉存储部分?

php7.1.10

curl -Ss http://www.workerman.net/check.php | php
PHP Version >= 5.3.3 [OK]
Extension pcntl check [OK]
Extension posix check [OK]

php start.php start -d
Please install pcntl extension. See http://doc3.workerman.net/install/install.html

php -m | grep pcntl
pcntl

php -v
PHP 7.1.10 (cli) (built: Oct 1 2017 22:42:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.10, Copyright (c) 1999-2017, by Zend Technologies

可能是什么原因?

成功曲线统计与调用总次数

成功曲线的统计和调用总次数一致,是不是文案的问题?
我的项目一共调用151次,成功53次,但是成功曲线显示的是151次

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.