SynologyDSM/SynologyDSM.py
def volume_size_total(self, volume, human_readable=True):
        """Total size of volume"""
        volume = self._get_volume(volume)
        if volume is not None:
            return_data = int(volume["size"]["total"])
            if human_readable:
                return SynoFormatHelper.bytes_to_readable(
                    return_data)
            else:
                return return_data
def volume_size_total(self, volume, human_readable=True):
        """Total size of volume"""
        volume = self._get_volume(volume)
        if volume is not None:
            return_data = int(volume["size"]["total"])
            if human_readable:
                return SynoFormatHelper.bytes_to_readable(
                    return_data)
            else:
                return return_data
def volume_size_total ( self , volume , human_readable = True ) : volume = self . _get_volume ( volume ) if volume is not None : return_data = int ( volume [ "size" ] [ "total" ] ) if human_readable : return SynoFormatHelper . bytes_to_readable ( return_data ) else : return return_data
Total size of volume
Total size of volume