-
Notifications
You must be signed in to change notification settings - Fork 33
/
massif-visualizer.rb
33 lines (27 loc) · 1.05 KB
/
massif-visualizer.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require File.join(File.dirname(__FILE__), 'base_kde_formula')
class MassifVisualizer < BaseKdeFormula
homepage 'http://milianw.de/tag/massif-visualizer'
url 'http://download.kde.org/unstable/massif-visualizer/0.3.90/src/massif-visualizer-0.3.90.tar.xz'
sha1 '6d76134b1b41b887ba595a0585f941d22e066b76'
depends_on 'kdelibs'
kde_build_deps
def patches
DATA
end
end
__END__
--- a/kdchart/src/KDChartPercentPlotter_p.cpp
+++ b/kdchart/src/KDChartPercentPlotter_p.cpp
@@ -185,12 +185,12 @@
data.first = leftY + ( rightY - leftY ) * ( xValue - leftX ) / ( rightX - leftX );
// if the result is a valid value, let's assign the index, too
- if( !ISNAN( data.first ) )
+ if( !ISNAN( (double)data.first ) )
data.second = left.second;
}
// sum it up
- if( !ISNAN( yValues[ column ].first ) )
+ if( !ISNAN( (double)(yValues[ column ].first) ) )
yValueSums[ xValue ] += yValues[ column ].first;
}
}