Skip to content

Commit

Permalink
change wmks retryConnectionInterval to a setting (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-aschlackman authored Apr 11, 2024
1 parent 6948f51 commit dc7c0ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/state/vsphere/vsphere.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
VmResolution,
} from '../../models/vm/vm-model';
import { VmStore } from './vsphere.store';
import { ComnSettingsService } from '@cmusei/crucible-common';

declare var WMKS: any; // needed to check values

Expand Down Expand Up @@ -68,6 +69,7 @@ export class VsphereService {
private http: HttpClient,
private vsphereService: ApiVsphereService,
private vmStore: VmStore,
public settingsService: ComnSettingsService,
@Inject(BASE_PATH) basePath: string,
) {
this.apiUrl = basePath;
Expand Down Expand Up @@ -217,7 +219,8 @@ export class VsphereService {
changeResolution: this.model.isOwner,
rescale: true,
position: WMKS.CONST.Position.CENTER,
retryConnectionInterval: 5000, // Changed to 5 seconds. This affects initial connection to console.
retryConnectionInterval:
this.settingsService.settings.WMKS.RetryConnectionInterval,
});

if (readOnly) {
Expand Down
5 changes: 4 additions & 1 deletion src/assets/config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
{ "name": "Normal", "value": 60 },
{ "name": "Slow", "value": 100 },
{ "name": "Slowest", "value": 500 }
]
],
"WMKS": {
"RetryConnectionInterval": 5000
}
}

0 comments on commit dc7c0ed

Please sign in to comment.