SynologyDSM/SynologyDSM.py
def memory_size(self, human_readable=True):
        """Total Memory Size of Synology DSM"""
        if self._data is not None:
            # Memory is actually returned in KB's so multiply before converting
            return_data = int(self._data["memory"]["memory_size"]) * 1024
            if human_readable:
                return SynoFormatHelper.bytes_to_readable(
                    return_data)
            else:
                return return_data
def memory_size(self, human_readable=True):
        """Total Memory Size of Synology DSM"""
        if self._data is not None:
            # Memory is actually returned in KB's so multiply before converting
            return_data = int(self._data["memory"]["memory_size"]) * 1024
            if human_readable:
                return SynoFormatHelper.bytes_to_readable(
                    return_data)
            else:
                return return_data
Total Memory Size of Synology DSM