Revision 0bd56b7c trunk/Pithos.Network/AccountInfo.cs

b/trunk/Pithos.Network/AccountInfo.cs
18 18
        public int BlockSize { get; set; }
19 19

  
20 20
        public string BlockHash { get; set; }
21

  
22
        public long Quota { get; set; }
23

  
24
        public long BytesUsed { get; set; }
25

  
26

  
27
        public string Usage
28
        {
29
            get
30
            {
31
                var gigabytes = Quota / 1073741824;
32
                var percentage = BytesUsed / (double)Quota;
33
                return String.Format("{0:P0} of {1} GB", percentage, gigabytes);
34
            }
35

  
36
        }
37

  
38
        public string SiteUri { get; set; }
21 39
    }
22 40
}

Also available in: Unified diff