Skip to content

Commit

Permalink
MDL-82047 analytics: remove 32-bit integer checks for maximum time.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed May 30, 2024
1 parent bcd8e0d commit faee1cd
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions analytics/classes/analysable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Any element analysers can analyse.
*
* @package core_analytics
* @copyright 2016 David Monllao {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace core_analytics;

defined('MOODLE_INTERNAL') || die();

/**
* Any element analysers can analyse.
*
Expand All @@ -37,9 +27,8 @@ interface analysable {

/**
* Max timestamp.
* We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.
*/
const MAX_TIME = PHP_INT_MAX < SQL_INT_MAX ? PHP_INT_MAX : SQL_INT_MAX;
const MAX_TIME = SQL_INT_MAX;

/**
* The analysable unique identifier in the site.
Expand Down

0 comments on commit faee1cd

Please sign in to comment.