Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5606

Statistic returns incorrect average number when escaped hour is less then 1 hour

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 9.6.4
    • None
    • None

      Steps to Reproduce

      1. check its code
        	public double getAverageSessionCount() {
        		return _nsess / getEscapedHours();
        	}
        

      Current Result

      when _nsess = 1, getEscapedHours()= 0.02
      its result is 50, which violate "the average number of sessions being created in an hour"

      Expected Result

      when it's less than an hour, treat it as 1 hour

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: