Skip to content
Permalink
Browse files

Bugfixes

  • Loading branch information
emrikol committed Dec 15, 2018
1 parent c873c46 commit a16f75540f992d489d2108ff827d9311f71a2824
Showing with 2 additions and 2 deletions.
  1. +2 −2 inc/class-pagegen.php
@@ -180,7 +180,7 @@ public function generate_widget() {

<canvas id="<?php echo esc_attr( self::WIDGET_ID ); ?>_canvas" style="height: 250px; width: 100%"></canvas>
<p><strong>Average:</strong> <code><?php echo esc_html( number_format( array_sum( $grand_average ) / count( $grand_average ), 2 ) ); ?>s</code></p>
<p><strong>Note:</strong> Page generation time is the server time including uncached database calls and any remote data fetched server side. It is not page load time, nor does the average include full HTML cached views. It does not include admin or REST API requests.</p>
<p><strong>Note:</strong> Page generation time is the server time including uncached database calls and any remote data fetched server side. It is not page load time, nor does the average include full HTML cached views.</p>
<script>
jQuery( function() {
var chart = new Chart( document.getElementById( '<?php echo esc_attr( self::WIDGET_ID ); ?>_canvas' ).getContext('2d'), {
@@ -220,7 +220,7 @@ public function get_data( $stats_type = 'pub', $time_stamp_start = null, $time_s
$where_and = ' AND `is_admin`=true AND `is_cron`=false';
break;
case 'rest':
$where_and = ' AND `is_rest`=true AND `is_cron`=false;';
$where_and = ' AND `is_rest`=true AND `is_cron`=false';
break;
case 'cron':
$where_and = ' AND `is_cron`=true';

0 comments on commit a16f755

Please sign in to comment.
You can’t perform that action at this time.