mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-24 09:28:54 +02:00
Merge branch 'stable-gcc611-fix-compile' of https://github.com/xavery/rivendell into xavery-stable-gcc611-fix-compile
This commit is contained in:
commit
f35263d24c
@ -623,9 +623,10 @@ unsigned RDCartSlot::SelectCart(const QString &svcname,unsigned msecs)
|
||||
"(SERVICE=\""+RDEscapeString(svcname)+"\")";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
if(::abs(msecs-q->value(1).toInt())<diff) {
|
||||
int cur_diff = msecs-q->value(1).toInt();
|
||||
if(::abs(cur_diff)<diff) {
|
||||
cartnum=q->value(0).toUInt();
|
||||
diff=::abs(msecs-q->value(1).toInt());
|
||||
diff=::abs(cur_diff);
|
||||
}
|
||||
}
|
||||
delete q;
|
||||
|
Loading…
x
Reference in New Issue
Block a user