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

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