Skip to content

Commit

Permalink
suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
b-Nollet committed Sep 16, 2024
1 parent d6aaaaf commit f516476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/xo-web/src/xo-app/backup/overview/tab-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import getSettingsWithNonDefaultValue from '../_getSettingsWithNonDefaultValue'
import { destructPattern } from '../utils'
import { REPORT_WHEN_LABELS } from '../new/_reportWhen'
import { LogStatus } from '../../logs/backup-ng'
import { formatSize } from '../../../common/utils'
import { formatSpeed } from '../../../common/utils'

const Ul = props => <ul {...props} style={{ listStyleType: 'none' }} />
const Li = props => (
Expand Down Expand Up @@ -359,7 +359,7 @@ class JobsTable extends React.Component {
)}
{timeout !== undefined && <Li>{_.keyValue(_('timeout'), timeout / 3600e3)} hours</Li>}
{fullInterval !== undefined && <Li>{_.keyValue(_('fullBackupInterval'), fullInterval)}</Li>}
{maxExportRate > 0 && <Li>{_.keyValue(_('speedLimitNoUnit'), formatSize(maxExportRate) + '/s')}</Li>}
{maxExportRate > 0 && <Li>{_.keyValue(_('speedLimitNoUnit'), formatSpeed(maxExportRate, 1000))}</Li>}
{offlineBackup !== undefined && (
<Li>{_.keyValue(_('offlineBackup'), _(offlineBackup ? 'stateEnabled' : 'stateDisabled'))}</Li>
)}
Expand Down

0 comments on commit f516476

Please sign in to comment.