From 34e3e7729f3221afbcae3d2122af43c9c32c2450 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Wed, 18 Jul 2012 14:46:29 +0200
Subject: [PATCH] find bwlimit at plnode-utils

---
 pl_mom.spec | 4 +++-
 swapmon.py  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pl_mom.spec b/pl_mom.spec
index e5bff47..dda1e6c 100644
--- a/pl_mom.spec
+++ b/pl_mom.spec
@@ -23,8 +23,10 @@ URL: %(echo %{url} | cut -d ' ' -f 2)
 #URL: http://cvs.planet-lab.org/cvs/pl_mom
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: expect
-# swapmon requires vps and bwlimit.py
+# swapmon requires vps and vkill
 Requires: util-vserver, util-vserver-python
+# for bwlimit used in swapmon
+Requires: plnode-utils
 # bwmon requires tc
 Requires: iproute
  
diff --git a/swapmon.py b/swapmon.py
index e3ddf17..6f995fa 100755
--- a/swapmon.py
+++ b/swapmon.py
@@ -23,7 +23,7 @@ import socket
 import time
 
 # bwlimit exports a few useful functions like run(), get_xid(), and get_slice()
-import bwlimit
+import plnode.bwlimit as bwlimit
 
 # Utility functions
 from pl_mom import *
-- 
2.47.0