From efeb97a8149c65976ad3e2ff12c096b180bf1f4a Mon Sep 17 00:00:00 2001 From: Nicolas Payart Date: Fri, 15 Mar 2019 11:10:51 +0100 Subject: [PATCH] Use char(32) for checksums instead of bigint unsigned (as required from pt-query-digest 3.0.11+) --- conf/sample.config.inc.php | 1 - docs/classes/Anemometer.html | 35 ------------------------------- docs/files/Anemometer.php.txt | 39 +++++------------------------------ install.sql | 4 ++-- lib/Anemometer.php | 38 +++++----------------------------- lib/AnemometerModel.php | 8 +++---- 6 files changed, 16 insertions(+), 109 deletions(-) diff --git a/conf/sample.config.inc.php b/conf/sample.config.inc.php index fe51fbb4..4a89106d 100644 --- a/conf/sample.config.inc.php +++ b/conf/sample.config.inc.php @@ -345,7 +345,6 @@ 'callbacks' => array( 'table' => array( 'date' => function ($x) { $type=''; if ( date('N',strtotime($x)) >= 6) { $type = 'weekend'; } return array($x,$type); }, - 'checksum' => function ($x) { return array(dec2hex($x), ''); } ) ) diff --git a/docs/classes/Anemometer.html b/docs/classes/Anemometer.html index 1c378e40..6b0cc070 100644 --- a/docs/classes/Anemometer.html +++ b/docs/classes/Anemometer.html @@ -223,7 +223,6 @@

Summary

setup_data_for_graph_search()
- translate_checksum()
alert()
display_report_form()
footer()
@@ -754,40 +753,6 @@

Parameters

- - - - - -
-
- -
-

translate_checksum()

- -
translate_checksum(  $checksum) 
-

- - -

Parameters

- - - - - - -
$checksum
- - -