• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FOG Reporting - query issue?

Scheduled Pinned Locked Moved
General
2
3
512
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    Wayne Workman
    last edited by Wayne Workman Oct 21, 2020, 9:16 PM Oct 22, 2020, 3:15 AM

    I’ve been watching the figures from the new FOG Reporting very frequently. The numbers fluctuate but there seems to be a really significant downwards fluctuation when we pass UTC midnight 00:00 every day.

    Just a bit earlier today, there was something like 52 total fog systems in the last 7 days. A little later after UTC midnight it’s dropped to 42.

    The timestamp in the database is a standard MariaDB datetime field. This is how the total count is gathered:

    select count(id) from versions_out_there where creation_time >= DATE(NOW()) - INTERVAL 7 DAY;

    Maybe this is wrong?

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    Q 1 Reply Last reply Oct 22, 2020, 7:58 AM Reply Quote 0
    • Q
      Quazz Moderator @Wayne Workman
      last edited by Quazz Oct 22, 2020, 1:58 AM Oct 22, 2020, 7:58 AM

      @Wayne-Workman DATE() returns the date without the timestamp. So it will be assumed to be 00:00:00

      Use just NOW() and drop DATE(), so that it is updated more accurately.

      1 Reply Last reply Reply Quote 1
      • W
        Wayne Workman
        last edited by Oct 23, 2020, 9:40 PM

        The figures seem much more stable now, much less fluctuations. Thank you @Quazz !

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          Last post

        206

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project