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 10, 2024
1 parent 2644b3c commit 8a9a5bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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,6 +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'

const Ul = props => <ul {...props} style={{ listStyleType: 'none' }} />
const Li = props => (
Expand Down Expand Up @@ -358,9 +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'), maxExportRate / (1024 * 1024) + ' MiB/s')}</Li>
)}
{maxExportRate > 0 && <Li>{_.keyValue(_('speedLimitNoUnit'), formatSize(maxExportRate) + '/s')}</Li>}
{offlineBackup !== undefined && (
<Li>{_.keyValue(_('offlineBackup'), _(offlineBackup ? 'stateEnabled' : 'stateDisabled'))}</Li>
)}
Expand Down

0 comments on commit 8a9a5bd

Please sign in to comment.