diff options
-rwxr-xr-x | manager/CMakeLists.txt | 4 | ||||
-rwxr-xr-x | utils/MsgUtilStorage.cpp | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/manager/CMakeLists.txt b/manager/CMakeLists.txt index c453cd8..12f2b91 100755 --- a/manager/CMakeLists.txt +++ b/manager/CMakeLists.txt @@ -4,10 +4,6 @@ SET(MSG-MGR-PKGNAME org.tizen.msg-manager) ADD_DEFINITIONS("-D_FILE_OFFSET_BITS=64") -IF(_WEARABLE_PROFILE) - ADD_DEFINITIONS("-DMSG_MGR_WEARABLE_PROFILE") -ENDIF(_WEARABLE_PROFILE) - SET(CMAKE_SKIP_BUILD_RPATH TRUE) IF("${CMAKE_BUILD_TYPE}" STREQUAL "") diff --git a/utils/MsgUtilStorage.cpp b/utils/MsgUtilStorage.cpp index 750d946..7b8de31 100755 --- a/utils/MsgUtilStorage.cpp +++ b/utils/MsgUtilStorage.cpp @@ -202,11 +202,11 @@ msg_error_t MsgStoCheckMsgCntFull(MsgDbHandler *pDbHandle, const MSG_MESSAGE_TYP MSG_ERR("Faile to get space info [%s]", ec.message().c_str()); return MSG_ERR_STORAGE_ERROR; } else { - MSG_DEBUG("Free space of storage is [%llu] MB.", si.free); + MSG_DEBUG("Free space of storage is [%llu] Bytes.", si.available); - if (si.free < SMS_MINIMUM_SPACE && pMsgType->mainType == MSG_SMS_TYPE) + if (si.available < SMS_MINIMUM_SPACE && pMsgType->mainType == MSG_SMS_TYPE) err = MSG_ERR_MESSAGE_COUNT_FULL; - else if (si.free < MMS_MINIMUM_SPACE && pMsgType->mainType == MSG_MMS_TYPE) + else if (si.available < MMS_MINIMUM_SPACE && pMsgType->mainType == MSG_MMS_TYPE) err = MSG_ERR_MESSAGE_COUNT_FULL; } @@ -354,9 +354,9 @@ msg_error_t MsgStocheckMemoryStatus() return MSG_ERR_STORAGE_ERROR; } - MSG_DEBUG("Free space of storage is [%llu] MB.", si.free); + MSG_DEBUG("Free space of storage is [%llu] Bytes.", si.available); - if (si.free < SMS_MINIMUM_SPACE) + if (si.available < SMS_MINIMUM_SPACE) err = MSG_ERR_MESSAGE_COUNT_FULL; MSG_DEBUG("Memory status =[%d]", err); |