[banshee] [AppleDevice] Show correct value for Capacity/FreeSpace
- From: Alan McGovern <alanmc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [AppleDevice] Show correct value for Capacity/FreeSpace
- Date: Mon, 13 Sep 2010 23:21:27 +0000 (UTC)
commit ac8b91bb384f0771a6ba4c24afe9c8c830ee24a1
Author: Alan McGovern <alan mcgovern gmail com>
Date: Tue Sep 14 00:18:40 2010 +0100
[AppleDevice] Show correct value for Capacity/FreeSpace
Capacity/free space is in bytes so we need to convert to gigabytes.
Fixes #629314.
.../Banshee.Dap.AppleDevice/AppleDeviceSource.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
index e9c4b19..d3137bd 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -92,8 +92,8 @@ namespace Banshee.Dap.AppleDevice
// FIXME
//AddDapProperty (Catalog.GetString ("Color"), "black");
- AddDapProperty (Catalog.GetString ("Capacity"), string.Format ("{0:0.00}GB", BytesCapacity));
- AddDapProperty (Catalog.GetString ("Available"), string.Format ("{0:0.00}GB", BytesAvailable));
+ AddDapProperty (Catalog.GetString ("Capacity"), string.Format ("{0:0.00}GB", BytesCapacity / 1024.0 / 1024.0 / 1024.0));
+ AddDapProperty (Catalog.GetString ("Available"), string.Format ("{0:0.00}GB", BytesAvailable / 1024.0 / 1024.0 / 1024.0));
AddDapProperty (Catalog.GetString ("Serial number"), Volume.Serial);
//AddDapProperty (Catalog.GetString ("Produced on"), ipod_device.ProductionInfo.DisplayDate);
//AddDapProperty (Catalog.GetString ("Firmware"), ipod_device.FirmwareVersion);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]