summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/utils.py b/ryu/utils.py
index a14929b9..1bc7ea3f 100644
--- a/ryu/utils.py
+++ b/ryu/utils.py
@@ -61,3 +61,7 @@ def find_flagfile(default_path=RYU_DEFAULT_FLAG_FILE):
sys.argv.insert(1, flagfile)
LOG.debug('flagfile = %s', filename)
return
+
+
+def round_up(x, y):
+ return ((x + y - 1) / y) * y