summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorlianah <lianahady@gmail.com>2015-05-29 10:18:36 -0400
committerlianah <lianahady@gmail.com>2015-05-29 10:18:36 -0400
commit331f8cccb1f5fc8806774652deb71f23c7572772 (patch)
tree1cf4b0d6356840f0543b301f8e90544f5ca3dbe3 /src/util
parentb4aaa40ca834958130a8ee5a922ac45c6de84ce1 (diff)
changed resource step options to unsigned
Diffstat (limited to 'src/util')
-rw-r--r--src/util/resource_manager.cpp2
-rw-r--r--src/util/resource_manager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/resource_manager.cpp b/src/util/resource_manager.cpp
index 37fea2c67..22496a433 100644
--- a/src/util/resource_manager.cpp
+++ b/src/util/resource_manager.cpp
@@ -170,7 +170,7 @@ uint64_t ResourceManager::getTimeRemaining() const {
return d_thisCallTimeBudget - time_passed;
}
-void ResourceManager::spendResource(uint64_t ammount) throw (UnsafeInterruptException) {
+void ResourceManager::spendResource(unsigned ammount) throw (UnsafeInterruptException) {
++d_spendResourceCalls;
d_cumulativeResourceUsed += ammount;
if (!d_on) return;
diff --git a/src/util/resource_manager.h b/src/util/resource_manager.h
index 9c2812f0f..e84917db0 100644
--- a/src/util/resource_manager.h
+++ b/src/util/resource_manager.h
@@ -128,7 +128,7 @@ public:
return d_thisCallResourceBudget;
}
- void spendResource(uint64_t ammount) throw(UnsafeInterruptException);
+ void spendResource(unsigned ammount) throw(UnsafeInterruptException);
void setHardLimit(bool value);
void setResourceLimit(uint64_t units, bool cumulative = false);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback