]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1237874 - File size unit always plural: "1 bytes"
authorKashinath Patekar <42115482+stellarbeam@users.noreply.github.com>
Tue, 25 Feb 2020 15:17:06 +0000 (20:47 +0530)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2020 15:17:06 +0000 (10:17 -0500)
Bugzilla/Template.pm

index a8d6baa7742cd054fb62744b36019392581bb087..59de9eac405417a234cd55bf1a8b5900020bf512 100644 (file)
@@ -807,7 +807,7 @@ sub create {
         my %units = ('KB' => 1024, 'MB' => 1024 * 1024, 'GB' => 1024 * 1024 * 1024,);
 
         if ($data < 1024) {
-          return "$data bytes";
+          return "$data byte".($data == 1 ? '':'s');
         }
         else {
           my $u;