From 82b5b6a0768755b6da24f8daad794f0c4bb43108 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 10 Jun 2021 17:31:41 +0200 Subject: Debug --- src/scenarios.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scenarios.cc') diff --git a/src/scenarios.cc b/src/scenarios.cc index 140696c..90a7849 100644 --- a/src/scenarios.cc +++ b/src/scenarios.cc @@ -29,7 +29,7 @@ int main(int argc, char **argv){ int seed=atoi(argv[1]); double simtime=stod(argv[2]); unsigned int wakeupevery=atoi(argv[3]); - double wakeupfor=stod(argv[4]); + unsigned int wakeupfor=stoi(argv[4]); unsigned int n_nodes=atoi(argv[5]); bool extended=!strcmp("true",argv[6]); bool hint=!strcmp("true",argv[7]); @@ -74,7 +74,7 @@ int main(int argc, char **argv){ Value ts(kArrayType); Value duration(kArrayType); for(unsigned int i=0;i