File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2012-2022 Inria. All rights reserved.
2
+ * Copyright © 2012-2023 Inria. All rights reserved.
3
3
* See COPYING in top-level directory.
4
4
*/
5
5
@@ -601,19 +601,19 @@ int main(int argc, char *argv[])
601
601
sizevalue = strtoull (argv [1 ], & end , 0 );
602
602
if (end ) {
603
603
if (!strcasecmp (end , "kB" ))
604
- sizevalue *= 1024ULL ;
604
+ sizevalue *= 1000ULL ;
605
605
else if (!strcasecmp (end , "kiB" ))
606
606
sizevalue <<= 10 ;
607
607
else if (!strcasecmp (end , "MB" ))
608
- sizevalue *= 1024ULL * 1024ULL ;
608
+ sizevalue *= 1000ULL * 1000ULL ;
609
609
else if (!strcasecmp (end , "MiB" ))
610
610
sizevalue <<= 20 ;
611
611
else if (!strcasecmp (end , "GB" ))
612
- sizevalue *= 1024ULL * 1024ULL * 1024ULL ;
612
+ sizevalue *= 1000ULL * 1000ULL * 1000ULL ;
613
613
else if (!strcasecmp (end , "GiB" ))
614
614
sizevalue <<= 30 ;
615
615
else if (!strcasecmp (end , "TB" ))
616
- sizevalue *= 1024ULL * 1024ULL * 1024ULL * 1024ULL ;
616
+ sizevalue *= 1000ULL * 1000ULL * 1000ULL * 1000ULL ;
617
617
else if (!strcasecmp (end , "TiB" ))
618
618
sizevalue <<= 40 ;
619
619
}
You can’t perform that action at this time.
0 commit comments