Commit c11e1706 authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Fixed a bug where instead of maxThreads, activeThreads were persisted

parent 4eb11600
......@@ -87,7 +87,7 @@ class DataPersister @Inject() (private val dbConfigProvider: DatabaseConfigProvi
/* Update jobs table */
val jQuery = jobs.filter(_.id === d.id).map(x (x.url, x.path, x.bandwidth, x.threads, x.user, x.pass, x.size, x.blocksize, x.finished)).
update(d.url, d.path, Some(d.bandwidthLimit), Some(d.activeThreads), d.username, d.password, Some(d.size), Some(d.chunkMatrix.blockSize.toInt), Some(new Timestamp(d.finishTime)))
update(d.url, d.path, Some(d.bandwidthLimit), Some(d.maxThreads), d.username, d.password, Some(d.size), Some(d.chunkMatrix.blockSize.toInt), Some(new Timestamp(d.finishTime)))
jQuery.statements.foreach(s Logger.trace(s"SQL: $s"))
/* Update chunks table (delete + insert the easiest here) */
......
Markdown is supported
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