2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 20:52:13 +00:00

fix: time calculation with float

git-svn-id: https://svn.fhem.de/fhem/trunk@20530 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2019-11-17 18:15:35 +00:00
parent 5c866121ba
commit 153f357fcd
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: 98_weekprofile: time calculation with float
- bugfix: 98_weekprofile: HM-TC-IT-WM-W-EU with CCU - bugfix: 98_weekprofile: HM-TC-IT-WM-W-EU with CCU
- feature: 70_KODI: pad channel and channelgroup readings with zeros to - feature: 70_KODI: pad channel and channelgroup readings with zeros to
improve alphabetical ordering improve alphabetical ordering

View File

@ -74,8 +74,8 @@ sub weekprofile_minutesToTime($)
{ {
my ($minutes) = @_; my ($minutes) = @_;
my $hours = $minutes / 60; my $hours = $minutes / 60.0;
$minutes = $minutes - $hours * 60; $minutes = $minutes - $hours * 60.0;
if (length($hours) eq 1){ if (length($hours) eq 1){
$hours = "0$hours"; $hours = "0$hours";