Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/10/11 15:20:01 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed bug that occurred when setting the Heartbeat Interval for a group of slaves
  • slave reports HbInterval now correct on first start
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r6893 r6897  
    196196    void SlaveViewContent_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) {
    197197      OnContentChanged();
     198      if (e.PropertyName == "HbInterval") {
     199        UpdateChildHbIntervall(slaveView.Content);
     200      }
     201    }
     202
     203    private void UpdateChildHbIntervall(Resource resource) {
     204      foreach (Resource r in Content.Where(x => x.ParentResourceId == resource.Id)) {
     205        r.HbInterval = resource.HbInterval;
     206        if (r is SlaveGroup) {
     207          UpdateChildHbIntervall(r);
     208        }
     209      }
    198210    }
    199211
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs

    r6893 r6897  
    124124            Content.HbInterval = interval;
    125125          }
    126           catch (Exception ex) {
     126          catch (Exception) {
    127127            MessageBox.Show("Please enter a numeric value for the Heartbeat Interval.", "HeuristicLab Hive Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error);
    128             txtHbIntervall.Text = "0";
     128            txtHbIntervall.Text = "10";
    129129          }
    130130        }
Note: See TracChangeset for help on using the changeset viewer.