From 18177c839bd31b68b7b9cf82ec18af57a8f031f6 Mon Sep 17 00:00:00 2001
From: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
Date: Tue, 25 Sep 2012 15:35:45 +0200
Subject: [PATCH] shell/cmd_time: second argument is nanoseconds, should not be
 divided by 8

---
 shell/cmd_time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/cmd_time.c b/shell/cmd_time.c
index 9ed5b7b..7062a2a 100644
--- a/shell/cmd_time.c
+++ b/shell/cmd_time.c
@@ -25,7 +25,7 @@ int cmd_time(const char *args[])
 	if(args[2] && !strcasecmp(args[0], "set")) {
 		if(wrc_ptp_get_mode() != WRC_MODE_SLAVE)
 		{
-			pps_gen_set_time((uint64_t)atoi(args[1]), atoi(args[2]) / 8);
+			pps_gen_set_time((uint64_t)atoi(args[1]), atoi(args[2]));
 			return 0;
 		} else
 			return -EBUSY;
-- 
GitLab