src/modules/fs.cpp
/**
   * Select format based on fs state
   */
Select format based on fs state
Select format based on fs state
string fs_module::get_format() const {
    if (!m_mounts[m_index]->mounted) {
      return FORMAT_UNMOUNTED;
    }
    if (m_mounts[m_index]->percentage_used >= m_perc_used_warn && m_formatter->has_format(FORMAT_WARN)) {
      return FORMAT_WARN;
    }
    return FORMAT_MOUNTED;
  }
string fs_module :: get_format ( ) const { if ( ! m_mounts [ m_index ] -> mounted ) { return FORMAT_UNMOUNTED ; } if ( m_mounts [ m_index ] -> percentage_used >= m_perc_used_warn && m_formatter -> has_format ( FORMAT_WARN ) ) { return FORMAT_WARN ; } return FORMAT_MOUNTED ; }
Select format based on fs state
Select format based on fs state