* fix conversion issues by returning a Long value

This commit is contained in:
Reinhard Pointner 2015-10-18 07:51:58 +00:00
parent 42966e8c68
commit 89ab081415
1 changed files with 2 additions and 2 deletions

View File

@ -632,12 +632,12 @@ public class MediaBindingBean {
@Define("seconds")
public Integer getSeconds() {
return Math.round(getDuration() / 1000f);
return (int) (getDuration() / 1000);
}
@Define("minutes")
public Integer getDurationInMinutes() {
return Math.round(getDuration() / 60000f);
return (int) (getDuration() / 60000);
}
@Define("media")