#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)
Change History (6)
comment:1 Changed 16 years ago by aloga@…
Changed 16 years ago by aloga@…
comment:2 Changed 16 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.
comment:4 Changed 16 years ago by anonymous
baidu 163 sina beiing hotel hotel 太阳能4 star hotel2 star hotel
5 star hotelwrought iron stair railings stair railings outdoor stair railings aluminum stair railing wrought iron stair baluster wrought iron stair railing parts staircase handrail iron stair rails interior metal staircase
Also, the pie chart is generated badly, due to the negative values. A patch is provided for both problems.