Blame SOURCES/0013-Chrony-allow-signed-numbers.patch

3b98a7
From deae1ee7eafff09b983ba7b9bcb7e59df92a5cea Mon Sep 17 00:00:00 2001
3b98a7
From: Miroslav Lichvar <mlichvar@redhat.com>
3b98a7
Date: Wed, 3 Jun 2015 17:31:07 +0200
3b98a7
Subject: [PATCH] Chrony: allow signed numbers
3b98a7
3b98a7
---
3b98a7
 lenses/chrony.aug            | 4 ++--
3b98a7
 lenses/tests/test_chrony.aug | 4 ++--
3b98a7
 2 files changed, 4 insertions(+), 4 deletions(-)
3b98a7
3b98a7
diff --git a/lenses/chrony.aug b/lenses/chrony.aug
3b98a7
index 32575688..5e30ee1f 100644
3b98a7
--- a/lenses/chrony.aug
3b98a7
+++ b/lenses/chrony.aug
3b98a7
@@ -50,10 +50,10 @@ module Chrony =
3b98a7
     let word       = Rx.word
3b98a7
 
3b98a7
     (* Variable: integer *)
3b98a7
-    let integer    = Rx.integer
3b98a7
+    let integer    = Rx.relinteger
3b98a7
 
3b98a7
     (* Variable: decimal *)
3b98a7
-    let decimal    = Rx.decimal
3b98a7
+    let decimal    = Rx.reldecimal
3b98a7
 
3b98a7
     (* Variable: ip *)
3b98a7
     let ip         = Rx.ip
3b98a7
diff --git a/lenses/tests/test_chrony.aug b/lenses/tests/test_chrony.aug
3b98a7
index c4b552eb..905ecee4 100644
3b98a7
--- a/lenses/tests/test_chrony.aug
3b98a7
+++ b/lenses/tests/test_chrony.aug
3b98a7
@@ -25,7 +25,7 @@ peer ntpc1.example.com
3b98a7
 stratumweight 0
3b98a7
 driftfile /var/lib/chrony/drift
3b98a7
 rtcsync
3b98a7
-makestep 10 3
3b98a7
+makestep 10 -1
3b98a7
 bindcmdaddress 127.0.0.1
3b98a7
 bindcmdaddress ::1
3b98a7
 local stratum 10
3b98a7
@@ -87,7 +87,7 @@ initstepslew 30 foo.bar.com baz.quz.com
3b98a7
   { "rtcsync" }
3b98a7
   { "makestep"
3b98a7
     { "threshold" = "10" }
3b98a7
-    { "limit" = "3" }
3b98a7
+    { "limit" = "-1" }
3b98a7
   }
3b98a7
   { "bindcmdaddress" = "127.0.0.1" }
3b98a7
   { "bindcmdaddress" = "::1" }
3b98a7
-- 
c941cc
2.24.1
3b98a7