mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +01:00
fix assertion failure, probably due to some freak accident of missaved
timestamp. Whatever.
This commit is contained in:
parent
d479486521
commit
fe25060255
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ public class ExpiringDelegate {
|
||||||
m_pct = (int)((100 * passed) / INTERVAL_SECS);
|
m_pct = (int)((100 * passed) / INTERVAL_SECS);
|
||||||
if ( m_pct > 100 ) {
|
if ( m_pct > 100 ) {
|
||||||
m_pct = 100;
|
m_pct = 100;
|
||||||
|
} else if ( m_pct < 0 ) {
|
||||||
|
m_pct = 0;
|
||||||
} else if ( null != m_handler ) {
|
} else if ( null != m_handler ) {
|
||||||
long onePct = INTERVAL_SECS / 100;
|
long onePct = INTERVAL_SECS / 100;
|
||||||
long lastStart = m_startSecs + (onePct * m_pct);
|
long lastStart = m_startSecs + (onePct * m_pct);
|
||||||
|
|
Loading…
Add table
Reference in a new issue