I DONT KNOW HOW TO FUCKING DO MATH SHIT

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-16 21:38:50 +02:00
parent ff81829ed1
commit da249788f8

View File

@@ -118,7 +118,7 @@ io.on('connection', function(socket){
}else }else
{ {
console.log(np[0]["title"] + " before if"); console.log(np[0]["title"] + " before if");
if(startTime+np[0]["duration"]<=get_time()-5) if(startTime+np[0]["duration"]<=get_time()+2)
{ {
console.log(np[0]["title"] + " after if"); console.log(np[0]["title"] + " after if");
db.collection(coll).update({now_playing:true, id:id}, db.collection(coll).update({now_playing:true, id:id},