Browse files

Merge pull request #543 from akoeplinger/fix-stats-formatting

Fixed stats formatting on home page when download or package count is 0
  • Loading branch information...
2 parents 2723299 + 2b39a65 commit 267c31dafbe485a62570075154145760610f9990 @Haacked Haacked committed Jul 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Website/Controllers/PagesController.cs
View
6 Website/Controllers/PagesController.cs
@@ -34,9 +34,9 @@ public virtual JsonResult Stats()
var stats = statsSvc.GetAggregateStats();
return Json(new
{
- Downloads = stats.Downloads.ToString("#,#"),
- UniquePackages = stats.UniquePackages.ToString("#,#"),
- TotalPackages = stats.TotalPackages.ToString("#,#")
+ Downloads = stats.Downloads.ToString("n0"),
+ UniquePackages = stats.UniquePackages.ToString("n0"),
+ TotalPackages = stats.TotalPackages.ToString("n0")
}, JsonRequestBehavior.AllowGet);
}
}

0 comments on commit 267c31d

Please sign in to comment.