Skip to content

Commit

Permalink
NAS-129624: Fix Cloud Sync Bandwidth limit increases on every task ed…
Browse files Browse the repository at this point in the history
…it (#10223)

(cherry picked from commit b5c501b)

Co-authored-by: Denys Butenko <[email protected]>
  • Loading branch information
bugclerk and denysbutenko authored Jun 20, 2024
1 parent 86aa63e commit 9a9bc85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ describe('CloudsyncFormComponent', () => {
it('shows values for an existing cloudsync task when it is open for edit', () => {
expect(spectator.component.form.value).toEqual({
acknowledge_abuse: false,
bwlimit: ['13:00, 1.02 kb', '15:00, off'],
bwlimit: ['13:00, 1 KiB/s', '15:00, off'],
cloudsync_picker: '0 0 * * 0',
create_empty_src_dirs: true,
credentials: 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export class CloudsyncFormComponent implements OnInit {
encryption: this.editingTask.encryption,
bwlimit: this.editingTask.bwlimit.map((bwlimit) => {
return bwlimit.bandwidth
? `${bwlimit.time}, ${buildNormalizedFileSize(bwlimit.bandwidth, 'b', 10)}`
? `${bwlimit.time}, ${buildNormalizedFileSize(bwlimit.bandwidth, 'B', 2)}/s`
: `${bwlimit.time}, off`;
}),
});
Expand Down

0 comments on commit 9a9bc85

Please sign in to comment.