1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-10-08 23:22:21 +02:00

bugfix for misaligned columns and additional test for ntpq #31

This commit is contained in:
Kelly Brazil
2020-03-11 13:24:55 -07:00
parent 59f19d33a5
commit fc8ab27361
6 changed files with 93 additions and 51 deletions

View File

@@ -14,7 +14,6 @@ Examples:
$ ntpq -p | jc --ntpq -p
[
{
"state": null,
"remote": "44.190.6.254",
"refid": "127.67.113.92",
"st": 2,
@@ -24,10 +23,10 @@ Examples:
"reach": 1,
"delay": 23.399,
"offset": -2.805,
"jitter": 2.131
"jitter": 2.131,
"state": null
},
{
"state": null,
"remote": "ntp.wdc1.us.lea",
"refid": "130.133.1.10",
"st": 2,
@@ -37,10 +36,10 @@ Examples:
"reach": 1,
"delay": 93.053,
"offset": -0.807,
"jitter": 2.839
"jitter": 2.839,
"state": null
},
{
"state": null,
"remote": "clock.team-cymr",
"refid": "204.9.54.119",
"st": 2,
@@ -50,10 +49,10 @@ Examples:
"reach": 1,
"delay": 70.337,
"offset": -2.909,
"jitter": 2.6
"jitter": 2.6,
"state": null
},
{
"state": null,
"remote": "mirror1.sjc02.s",
"refid": "216.218.254.202",
"st": 2,
@@ -63,14 +62,14 @@ Examples:
"reach": 1,
"delay": 29.325,
"offset": 1.044,
"jitter": 4.069
"jitter": 4.069,
"state": null,
}
]
$ ntpq -pn| jc --ntpq -p
[
{
"state": "+",
"remote": "44.190.6.254",
"refid": "127.67.113.92",
"st": 2,
@@ -80,10 +79,10 @@ Examples:
"reach": 377,
"delay": 22.69,
"offset": -0.392,
"jitter": 2.085
"jitter": 2.085,
"state": "+"
},
{
"state": "-",
"remote": "108.59.2.24",
"refid": "130.133.1.10",
"st": 2,
@@ -93,10 +92,10 @@ Examples:
"reach": 377,
"delay": 90.805,
"offset": 2.84,
"jitter": 1.908
"jitter": 1.908,
"state": "-"
},
{
"state": "+",
"remote": "38.229.71.1",
"refid": "204.9.54.119",
"st": 2,
@@ -106,10 +105,10 @@ Examples:
"reach": 377,
"delay": 68.699,
"offset": -0.61,
"jitter": 2.576
"jitter": 2.576,
"state": "+"
},
{
"state": "*",
"remote": "72.5.72.15",
"refid": "216.218.254.202",
"st": 2,
@@ -119,14 +118,15 @@ Examples:
"reach": 377,
"delay": 22.654,
"offset": 0.231,
"jitter": 1.964
"jitter": 1.964,
"state": "*"
}
]
$ ntpq -pn| jc --ntpq -p -r
[
{
"state": "+",
"s": "+",
"remote": "44.190.6.254",
"refid": "127.67.113.92",
"st": "2",
@@ -139,7 +139,7 @@ Examples:
"jitter": "2.085"
},
{
"state": "-",
"s": "-",
"remote": "108.59.2.24",
"refid": "130.133.1.10",
"st": "2",
@@ -152,7 +152,7 @@ Examples:
"jitter": "1.908"
},
{
"state": "+",
"s": "+",
"remote": "38.229.71.1",
"refid": "204.9.54.119",
"st": "2",
@@ -165,7 +165,7 @@ Examples:
"jitter": "2.576"
},
{
"state": "*",
"s": "*",
"remote": "72.5.72.15",
"refid": "216.218.254.202",
"st": "2",