mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Fix alarm not being fired sometimes
This commit is contained in:
parent
1d559e9263
commit
5dd67f2d3d
@ -125,7 +125,7 @@ export class et2_countdown extends et2_valueWidget {
|
||||
|
||||
for (let i=0;i<=alarms.length;i++)
|
||||
{
|
||||
if (alarms[i] > 0 && alarms[i] == distance/1000 && typeof this.onAlarm == 'function')
|
||||
if (alarms[i] > 0 && alarms[i] == Math.floor(distance/1000) && typeof this.onAlarm == 'function')
|
||||
{
|
||||
this.onAlarm();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user