Changeset 16094
- Timestamp:
- 08/29/18 16:01:00 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs
r15995 r16094 714 714 double sumFreeMemory = selectedSlaves.Sum(x => x.FreeMemory.GetValueOrDefault()) / 1024.0; 715 715 716 coresSummaryLabel.Text = $"{sumCores} Total ({sumFreeCores} Free / {sumCores - sumFreeCores} Used)";717 memorySummaryLabel.Text = $"{sumMemory:0.00} GB Total ({sumFreeMemory:0.00} GB Free / {(sumMemory - sumFreeMemory):0.00} GB Used)";716 coresSummaryLabel.Text = string.Format("{0} Total ({1} Free / {2} Used)", sumCores, sumFreeCores, sumCores - sumFreeCores); 717 memorySummaryLabel.Text = string.Format("{0:0.00} GB Total ({1:0.00} GB Free / {2:0.00} GB Used)", sumMemory, sumFreeMemory, sumMemory - sumFreeMemory); 718 718 } 719 719 -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
r16057 r16094 213 213 214 214 private void coresNeededComboBox_SelectedIndexChanged(object sender, EventArgs e) { 215 if (int.TryParse(coresNeededComboBox.SelectedItem.ToString(), out int cores)) 215 int cores; 216 if (int.TryParse(coresNeededComboBox.SelectedItem.ToString(), out cores)) 216 217 Content.Task.CoresNeeded = cores; 217 218 }
Note: See TracChangeset
for help on using the changeset viewer.