| Index: third_party/WebKit/Source/modules/budget/BudgetService.cpp
|
| diff --git a/third_party/WebKit/Source/modules/budget/BudgetService.cpp b/third_party/WebKit/Source/modules/budget/BudgetService.cpp
|
| index 5308d8691bdaea1f879a4b86eb8d2bc15396d761..1def7099bdffe9f51fb6de1af893276ef914aaaf 100644
|
| --- a/third_party/WebKit/Source/modules/budget/BudgetService.cpp
|
| +++ b/third_party/WebKit/Source/modules/budget/BudgetService.cpp
|
| @@ -114,9 +114,12 @@ void BudgetService::gotBudget(
|
|
|
| // Copy the chunks into the budget array.
|
| HeapVector<Member<BudgetState>> budget(expectations.size());
|
| - for (size_t i = 0; i < expectations.size(); i++)
|
| - budget[i] =
|
| - new BudgetState(expectations[i]->budget_at, expectations[i]->time);
|
| + for (size_t i = 0; i < expectations.size(); i++) {
|
| + // Return the largest integer less than the budget, so it's easier for
|
| + // developer to reason about budget.
|
| + budget[i] = new BudgetState(floor(expectations[i]->budget_at),
|
| + expectations[i]->time);
|
| + }
|
|
|
| resolver->resolve(budget);
|
| }
|
|
|