From dceb44958f98624b3a9841a096839b99cb8a43ea Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Fri, 13 Jan 2017 19:44:25 -0500 Subject: [PATCH] rid debug --- src/buzz_utility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/buzz_utility.cpp b/src/buzz_utility.cpp index 0aa52c3..06211de 100644 --- a/src/buzz_utility.cpp +++ b/src/buzz_utility.cpp @@ -339,7 +339,7 @@ namespace buzz_utility{ gethostname(hstnm, 30); /* Make numeric id from hostname */ /* NOTE: here we assume that the hostname is in the format Knn */ - int id = strtol(hstnm + 1, NULL, 10); + int id = strtol(hstnm + 4, NULL, 10); /* Reset the Buzz VM */ if(VM) buzzvm_destroy(&VM); @@ -387,7 +387,7 @@ namespace buzz_utility{ gethostname(hstnm, 30); /* Make numeric id from hostname */ /* NOTE: here we assume that the hostname is in the format Knn */ - int id = strtol(hstnm + 1, NULL, 10); + int id = strtol(hstnm + 4, NULL, 10); /* Reset the Buzz VM */ if(VM) buzzvm_destroy(&VM); VM = buzzvm_new(id); @@ -550,7 +550,7 @@ uint16_t get_robotid(){ gethostname(hstnm, 30); /* Make numeric id from hostname */ /* NOTE: here we assume that the hostname is in the format Knn */ - int id = strtol(hstnm + 1, NULL, 10); + int id = strtol(hstnm + 4, NULL, 10); return (uint16_t)id; }