aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorhawken <hawken@thehawken.org>2019-01-07 21:16:38 +0000
committerhawken <hawken@thehawken.org>2019-01-07 21:29:59 +0000
commit82a801c9ae0d7a5074ad0003d1aa5c2154da9382 (patch)
tree267857820488e809f45a2e5986f44f53640e4219 /Emby.Server.Implementations/LiveTv
parent880825514a0d1f255699ce69783847374179c9a9 (diff)
Some less obvious ones that I was told were there
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
-rw-r--r--Emby.Server.Implementations/LiveTv/LiveTvManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
index b597a935a2..a81a0bcbb7 100644
--- a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -1056,7 +1056,7 @@ namespace Emby.Server.Implementations.LiveTv
var numComplete = 0;
double progressPerService = _services.Length == 0
? 0
- : 1 / _services.Length;
+ : 1.0 / _services.Length;
var newChannelIdList = new List<Guid>();
var newProgramIdList = new List<Guid>();
@@ -1262,7 +1262,7 @@ namespace Emby.Server.Implementations.LiveTv
}
numComplete++;
- double percent = numComplete / allChannelsList.Count;
+ double percent = numComplete / (double) allChannelsList.Count;
progress.Report(85 * percent + 15);
}
@@ -1307,7 +1307,7 @@ namespace Emby.Server.Implementations.LiveTv
}
numComplete++;
- double percent = numComplete / list.Count;
+ double percent = numComplete / (double) list.Count;
progress.Report(100 * percent);
}