mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
pass milliseconds, not seconds (and be careful to cast early)
This commit is contained in:
parent
1493895428
commit
8c3180573a
1 changed files with 6 additions and 3 deletions
|
@ -288,9 +288,12 @@ public class DBUtils {
|
|||
values.put( DBHelper.DICTLANG, summary.dictLang );
|
||||
values.put( DBHelper.GAMEID, summary.gameID );
|
||||
values.put( DBHelper.GAME_OVER, summary.gameOver? 1 : 0 );
|
||||
// DbgUtils.logf("saveSummary(%d): lastMoveTime: %s", rowid,
|
||||
// DbgUtils.secondsToDateStr(summary.lastMoveTime) );
|
||||
values.put( DBHelper.LASTMOVE, summary.lastMoveTime );
|
||||
long nextNag = summary.nextTurnIsLocal()
|
||||
? NagTurnReceiver.figureNextNag( summary.lastMoveTime ) : 0;
|
||||
long nextNag = summary.nextTurnIsLocal() ?
|
||||
NagTurnReceiver.figureNextNag( 1000*(long)summary.lastMoveTime )
|
||||
: 0;
|
||||
DbgUtils.logf( "setting nag time for %d: %d", rowid, nextNag );
|
||||
values.put( DBHelper.NEXTNAG, nextNag );
|
||||
|
||||
|
@ -1038,7 +1041,7 @@ public class DBUtils {
|
|||
cursor.close();
|
||||
db.close();
|
||||
}
|
||||
DbgUtils.logf( "getNextNag()=>%d", result );
|
||||
DbgUtils.logf( "getNextNag()=>%s", DbgUtils.millisToDateStr(result) );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue