Skip to content

Commit

Permalink
Merge pull request #623 from DamianMaslanka5/feature/GH-590
Browse files Browse the repository at this point in the history
(GH-590) Fix page count.
  • Loading branch information
gep13 authored Oct 20, 2018
2 parents 70aa352 + 6f2b4aa commit 87088c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ChocolateyGui/ViewModels/RemoteSourceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public async Task LoadPackages()
var installed = await _chocolateyPackageService.GetInstalledPackages();
var outdated = await _chocolateyPackageService.GetOutdatedPackages();

PageCount = (int)(((double)result.TotalCount / (double)PageSize) + 0.5);
PageCount = (int)Math.Ceiling((double)result.TotalCount / (double)PageSize);
Packages.Clear();
result.Packages.ToList().ForEach(p =>
{
Expand Down

0 comments on commit 87088c8

Please sign in to comment.