[powerdebug 03/14] use an int instead of a double

Daniel Lezcano daniel.lezcano at free.fr
Tue Mar 22 11:40:06 UTC 2011


From: Daniel Lezcano <dlezcano at fr.ibm.com>

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
---
 powerdebug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/powerdebug.c b/powerdebug.c
index 3529459..44f1f02 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -125,7 +125,7 @@ int getoptions(int argc, char *argv[], struct powerdebug_options *options)
 			}
 			break;
 		case 't':
-			options->ticktime = strtod(optarg, NULL);
+			options->ticktime = atoi(optarg);
 			break;
 		case 'd':
 			dump = 1;
-- 
1.7.1




More information about the linaro-dev mailing list