~gpx-viewer-team/gpx-viewer/main

« back to all changes in this revision

Viewing changes to src/gpx-graph.vala

  • Committer: Qball Cow
  • Date: 2013-10-25 20:26:53 UTC
  • Revision ID: qball@maigret.qballcow.nl-20131025202653-vu43w31txuqvarwp
Small fix to accell.

Show diffs side-by-side

added added

removed removed

Lines of Context:
489
489
                        }else if(this._mode == GraphMode.DISTANCE){
490
490
                                value = Gpx.Track.calculate_distance(ii.data, ii.first().data);
491
491
                        }else if(this._mode == GraphMode.ACCELERATION_H && ii.prev != null){
 
492
                if(ii.data.get_time() == ii.prev.data.get_time()) return 0;
492
493
                                value = (ii.data.speed- ii.prev.data.speed)/(3.6*(ii.data.get_time()-ii.prev.data.get_time()));
493
494
                        }else if(this._mode == GraphMode.SPEED_V && ii.prev != null){
494
495
                if(ii.data.get_time() == ii.prev.data.get_time()) return 0;