Commit a8a4cee3 authored by Alexandre's avatar Alexandre
Browse files

Fix computation of test's age (SQLite)

Check against "creation_time" to compute the test"s age instead of
"test_start_time".
parent 26c0511c
...@@ -199,7 +199,7 @@ sub create_new_test { ...@@ -199,7 +199,7 @@ sub create_new_test {
# Search for recent test result with the test same parameters, where "$seconds" # Search for recent test result with the test same parameters, where "$seconds"
# gives the time limit for how old test result that is accepted. # gives the time limit for how old test result that is accepted.
my ( $recent_hash_id ) = $dbh->selectrow_array( my ( $recent_hash_id ) = $dbh->selectrow_array(
"SELECT hash_id FROM test_results WHERE fingerprint = ? AND test_start_time > DATETIME('now', ?)", "SELECT hash_id FROM test_results WHERE fingerprint = ? AND creation_time > DATETIME('now', ?)",
undef, undef,
$fingerprint, $fingerprint,
"-$seconds seconds" "-$seconds seconds"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment