Skip to content

Commit

Permalink
fix chart Q grow
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Sep 19, 2019
1 parent cf3c17c commit 033c439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Expand Up @@ -110,9 +110,9 @@
$to = min( $height, $to );
$Q = 1;

while( ( $to - $from ) / $Q > 2500 && $Q < 1000 )
while( ( $to - $from ) / $Q > 1000 && $Q < 10000 )
$Q *= 10;

$from -= $from % $Q;
$dataset = $api->get_dataset( $Q, $from, $to );

Expand Down

0 comments on commit 033c439

Please sign in to comment.