ifd_tools 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,11 @@ xml.root do
|
|
4
4
|
xml.state do
|
5
5
|
xml.name activity.name.downcase
|
6
6
|
xml.activity activity.activity
|
7
|
-
|
7
|
+
|
8
|
+
percent = ( activity.activity.to_f / @total_activity ).round(2)
|
9
|
+
percent = 0 if percent.nan?
|
10
|
+
|
11
|
+
xml.percent percent
|
8
12
|
xml.users activity.users
|
9
13
|
end
|
10
14
|
end
|
data/lib/ifd_tools/version.rb
CHANGED