File tree 2 files changed +6
-5
lines changed
por/dashboard/static/por_backlog
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
------------------
3
3
4
4
- search improvements [amleczko]
5
+ - fix backlog math [amleczko]
5
6
6
7
7
8
1.7.6 (2013-05-08)
Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ $(document).ready(function(){
142
142
matching_crs += 1 ;
143
143
}
144
144
} ) ;
145
- if ( percentages . length ) {
146
- total_percentage = ( percentages . reduce ( function ( a , b ) { return a + b } ) / percentages . length ) ;
147
- } else {
148
- total_percentage = - 1 ;
145
+ if ( total_done > 0 && total_estimate > 0 ) {
146
+ total_percentage = ( total_done / total_estimate ) * 100 ;
147
+ }
148
+ else {
149
+ total_percentage = 0 ;
149
150
}
150
-
151
151
fill_duration ( $bgb_header . find ( '.total-estimate' ) , total_estimate ) ;
152
152
fill_duration ( $bgb_header . find ( '.total-done' ) , total_done ) ;
153
153
fill_percentage ( $bgb_header . find ( '.total-percentage' ) , total_percentage ) ;
You can’t perform that action at this time.
0 commit comments