[banshee/bug-nonum_decimal-file-sizes] Use decimal file sizes.
- From: John Millikin <jmillikin src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee/bug-nonum_decimal-file-sizes] Use decimal file sizes.
- Date: Fri, 17 Apr 2009 21:47:30 -0400 (EDT)
commit f8438211e35cc5d81b5660d70fa4e71e68f63a91
Author: John Millikin <jmillikin gmail com>
Date: Fri Apr 17 18:46:48 2009 -0700
Use decimal file sizes.
---
.../Hyena/Hyena.Query/FileSizeQueryValue.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/Libraries/Hyena/Hyena.Query/FileSizeQueryValue.cs b/src/Libraries/Hyena/Hyena.Query/FileSizeQueryValue.cs
index 757f854..3776f51 100644
--- a/src/Libraries/Hyena/Hyena.Query/FileSizeQueryValue.cs
+++ b/src/Libraries/Hyena/Hyena.Query/FileSizeQueryValue.cs
@@ -37,11 +37,11 @@ namespace Hyena.Query
{
public enum FileSizeFactor : long {
None = 1,
- KB = 1024,
- MB = 1048576,
- GB = 1073741824,
- TB = 1099511627776,
- PB = 1125899906842624
+ KB = (long)1e3,
+ MB = (long)1e6,
+ GB = (long)1e9,
+ TB = (long)1e12,
+ PB = (long)1e15
}
public class FileSizeQueryValue : IntegerQueryValue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]