mirror of
https://github.com/librespeed/speedtest.git
synced 2024-05-10 18:54:52 +00:00
Fix results image for jitter (#158)
Postgres and SQLite were referencing the wrong variable causing the jitter field to always be empty.
This commit is contained in:
committed by
Federico Dossena
parent
cb944de118
commit
52e91f9054
@@ -70,7 +70,7 @@ if($db_type=="mysql"){
|
||||
$dl=$row["dl"];
|
||||
$ul=$row["ul"];
|
||||
$ping=$row["ping"];
|
||||
$jitter=$row["jitter"];
|
||||
$jit=$row["jitter"];
|
||||
$conn=null;
|
||||
}else if($db_type=="postgresql"){
|
||||
$conn_host = "host=$PostgreSql_hostname";
|
||||
@@ -85,7 +85,7 @@ if($db_type=="mysql"){
|
||||
$dl=$row["dl"];
|
||||
$ul=$row["ul"];
|
||||
$ping=$row["ping"];
|
||||
$jitter=$row["jitter"];
|
||||
$jit=$row["jitter"];
|
||||
$conn=null;
|
||||
}else die();
|
||||
|
||||
@@ -130,4 +130,4 @@ header('Content-Type: image/png');
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user