793 else |
793 else |
794 { |
794 { |
795 |
795 |
796 if (( aFreeSpace >= KHundredNum ) && ( aFreeSpace < KMegaNum )) |
796 if (( aFreeSpace >= KHundredNum ) && ( aFreeSpace < KMegaNum )) |
797 { |
797 { |
798 tempNum /= KThousandNum; // Divide to kilobytes |
798 tempNum /= TReal64( KThousandNum ); // Divide to kilobytes |
799 tempNum = TReal32( TInt( tempNum * 10 ) ) / 10; |
|
800 unitBuf = StringLoader::LoadLC( |
799 unitBuf = StringLoader::LoadLC( |
801 R_CFD_QTN_MEMC_UNITS_KILOBYTE, |
800 R_CFD_QTN_MEMC_UNITS_KILOBYTE, |
802 CCoeEnv::Static()); |
801 CCoeEnv::Static()); |
803 } |
802 } |
804 else if (( aFreeSpace >= KMegaNum ) && ( aFreeSpace < KGigaNum )) |
803 else if (( aFreeSpace >= KMegaNum ) && ( aFreeSpace < KGigaNum )) |
805 { |
804 { |
806 tempNum /= KMegaNum; // Divide to Megabytes |
805 tempNum /= TReal64( KMegaNum ); // Divide to Megabytes |
807 tempNum = TReal32( TInt( tempNum * 10 ) ) / 10; |
|
808 unitBuf = StringLoader::LoadLC( |
806 unitBuf = StringLoader::LoadLC( |
809 R_CFD_QTN_MEMC_UNITS_MEGABYTE, |
807 R_CFD_QTN_MEMC_UNITS_MEGABYTE, |
810 CCoeEnv::Static()); |
808 CCoeEnv::Static()); |
811 } |
809 } |
812 else if (aFreeSpace >= KGigaNum ) |
810 else if (aFreeSpace >= KGigaNum ) |
813 { |
811 { |
814 tempNum /= KGigaNum; // Divide to Gigabytes |
812 tempNum /= TReal64( KGigaNum ); // Divide to Gigabytes |
815 tempNum = TReal32( TInt( tempNum * 10 ) ) / 10; |
|
816 unitBuf = StringLoader::LoadLC( |
813 unitBuf = StringLoader::LoadLC( |
817 R_CFD_QTN_MEMC_UNITS_GIGABYTE, |
814 R_CFD_QTN_MEMC_UNITS_GIGABYTE, |
818 CCoeEnv::Static()); |
815 CCoeEnv::Static()); |
819 } |
816 } |
820 |
817 |