- Timestamp:
- 09/17/10 10:26:55 (14 years ago)
- Location:
- branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3
- Files:
-
- 3 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/HiveServerManagementConsole.cs
r4302 r4423 345 345 foreach (ResourceDto resource in clientGroup.Resources) { 346 346 if (resource is SlaveDto) { 347 int percentageUsage = CapacityRam(((SlaveDto)resource).NrOfCores, ((SlaveDto)resource).NrOfFreeCores); 347 int percentageUsage; 348 if (((SlaveDto)resource).NrOfCores.HasValue && ((SlaveDto)resource).NrOfFreeCores.HasValue) { 349 percentageUsage = CapacityRam(((SlaveDto)resource).NrOfCores.Value, ((SlaveDto)resource).NrOfFreeCores.Value); 350 } else { 351 percentageUsage = 0; 352 } 353 348 354 int usage = 3; 349 355 if ((((SlaveDto)resource).State != SlaveState.Offline) && … … 427 433 428 434 lblJobName.Text = job.Id.ToString(); 429 if (job.Percentage != null) { 430 progressJob.Value = (int)(currentJob.Percentage * 100); 431 lblProgress.Text = (int)(currentJob.Percentage * 100) + "% calculated"; 432 } 435 436 progressJob.Value = (int)(currentJob.ExecutionTime.TotalDays % 1) * progressJob.Maximum; 437 lblProgress.Text = currentJob.ExecutionTime.ToString(); 433 438 434 439 ListViewItem lvi = new ListViewItem(); … … 443 448 lvJobDetails.Items.Add(lvi); 444 449 445 if (job.ParentJob != null) {450 if (job.ParentJobId != null) { 446 451 lvi = null; 447 452 lvi = new ListViewItem(); 448 453 lvi.Text = "Parent job:"; 449 lvi.SubItems.Add(job.ParentJob .ToString());454 lvi.SubItems.Add(job.ParentJobId.ToString()); 450 455 lvJobDetails.Items.Add(lvi); 451 456 } … … 497 502 498 503 if (currentSlave != null) { 499 int percentageUsage = CapacityRam(currentSlave.NrOfCores, currentSlave.NrOfFreeCores); 504 int percentageUsage; 505 if (currentSlave.NrOfCores.HasValue && currentSlave.NrOfFreeCores.HasValue) { 506 percentageUsage = CapacityRam(currentSlave.NrOfCores.Value, currentSlave.NrOfFreeCores.Value); 507 } else { 508 percentageUsage = 0; 509 } 500 510 int usage = 3; 501 511 if ((currentSlave.State != SlaveState.Offline) && (currentSlave.State != SlaveState.NullState)) { … … 807 817 if (job.State != JobState.Offline) { 808 818 if ((!IsEqual(job.Slave, jobold.Slave)) || (job.State != jobold.State) 809 || (job. Percentage != jobold.Percentage)) {819 || (job.ExecutionTime != jobold.ExecutionTime)) { 810 820 change = true; 811 821 } -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/app.config
r4368 r4423 35 35 </bindings> 36 36 <client> 37 <endpoint address="http:// localhost:9000/ServerConsoleService" behaviorConfiguration="ServerConsoleBehaviour"37 <endpoint address="http://blade12.hpc.fh-hagenberg.at:9000/ServerConsoleService" behaviorConfiguration="ServerConsoleBehaviour" 38 38 binding="wsHttpBinding" bindingConfiguration="ServerConsoleHttpEndpoint" 39 39 contract="HeuristicLab.Hive.Contracts.Interfaces.IServerConsoleFacade" name="ServerConsoleHttpEndpoint"> 40 40 <identity> 41 <certificate encodedValue="AwAAAAEAAAAUAAAA J5p7xBv8o/BZ9Lp1c1d+F13FxN8gAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgzMDA5MTMyMVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbjJrhOtSpfFz51JPvdfxMVSKqnWhfzjrZvtwpVsy8D589m3SeS6AalWwtkpPCR2C+a4GKo9e689o0+BtuOugypAWqkUhkz//XLvUp5KPNB7igY7he4ngMLp4GsWBWZdl+P8g29t5+nde1Tiv6dPzx5YgfB9lrvZzaS6TT/eNasQIDAQABo0kwRzB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IpUEbR1C/S4RmupMivLNQoA=" /> 42 42 </identity> 43 43 </endpoint>
Note: See TracChangeset
for help on using the changeset viewer.