diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-25 12:18:00 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-25 12:18:00 +0000 |
commit | e481c2fd127c46024b1b15587981dca00eada44c (patch) | |
tree | 9b3884e8904e9e63d1b39bea4eae5f9c12009c92 /perllib/FixMyStreet/App/Controller/Dashboard.pm | |
parent | 7f41c1b26110e18c0068bcd9e209daebe26b6779 (diff) | |
parent | b9e1b1384b11acbd5d9fd51e92eb7278fb6eb43d (diff) |
Merge branch 'bugfix/1957'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Dashboard.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Dashboard.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index d597ff0ea..5bc82444d 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -292,7 +292,7 @@ sub generate_summary_figures { sub generate_body_response_time : Private { my ( $self, $c ) = @_; - my $avg = $c->stash->{body}->calculate_average; + my $avg = $c->stash->{body}->calculate_average($c->cobrand->call_hook("body_responsiveness_threshold")); $c->stash->{body_average} = $avg ? int($avg / 60 / 60 / 24 + 0.5) : 0; } |