Commit 0482e3d3f150849773aa98b02eb71c11825ee3f5
1 parent
41d5907b
ga fix
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/GaController.php
@@ -150,14 +150,14 @@ class GaController extends CrudResourceController { | @@ -150,14 +150,14 @@ class GaController extends CrudResourceController { | ||
150 | foreach ($response as $item) { | 150 | foreach ($response as $item) { |
151 | 151 | ||
152 | $metric_val = $item['metrics'][0]['values']; | 152 | $metric_val = $item['metrics'][0]['values']; |
153 | - $result['name'] = $project_name; | 153 | + $result['name'] = $project_name.'!'; |
154 | 154 | ||
155 | if (count($metric_val) > 1) { | 155 | if (count($metric_val) > 1) { |
156 | for ($i = 0; $i < count($metric_val); $i++) { | 156 | for ($i = 0; $i < count($metric_val); $i++) { |
157 | $result['data'][] = (int)$metric_val[$i]; | 157 | $result['data'][] = (int)$metric_val[$i]; |
158 | } | 158 | } |
159 | } else { | 159 | } else { |
160 | - $result['data'][] = 0; | 160 | + $result['data'][] = (float)$metric_val[0]; |
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 |