Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#39 closed defect (fixed)

Wrong number of free nodes reported

Reported by: aloga@… Owned by: bastiaans
Priority: normal Milestone: 0.3
Component: web Version: 0.2
Keywords: Cc: aloga@…
Estimated Number of Hours:

Description

When there are more jobs than CPUs on a system, the JobMonarch? web interface reports a negative number of Free CPUS.

Replacing on the overiew.php file the lines 698 and 699 with the lines below should correct the problem.

698 $free_nodes = ($avail_nodes - $running_nodes) >= 0 ? $avail_nodes - $running_nodes : 0; 699 $free_cpus = ($avail_cpus - $running_cpus) >= 0 ? $avail_cpus - $running_cpus : 0;

Cheers.

Attachments (2)

overview.php.patch (938 bytes) - added by aloga@… 17 years ago.
overview.php.2.patch (938 bytes) - added by aloga@… 17 years ago.
Typo correction to the previous patch

Download all attachments as: .zip

Change History (6)

comment:1 Changed 17 years ago by aloga@…

Also, the pie chart is generated badly, due to the negative values. A patch is provided for both problems.

Changed 17 years ago by aloga@…

Changed 17 years ago by aloga@…

Typo correction to the previous patch

comment:2 Changed 17 years ago by bastiaans

  • Milestone set to 0.2.1
  • Owner changed from somebody to bastiaans
  • Status changed from new to assigned

comment:3 Changed 16 years ago by bastiaans

  • Cc aloga@… added
  • Resolution set to fixed
  • Status changed from assigned to closed

thanks for the patch! sorry for the late response.

fixed in changeset r457.

Note: See TracTickets for help on using tickets.