summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-01-06 08:16:02 -0500
committerGitHub <noreply@github.com>2023-01-06 08:16:02 -0500
commit99e1cbb084efbb1dc3374adcb0b713ddb0f9201d (patch)
treeeeaa5f6e49c3067d8ef7ccdc80d4e0231d2414d8 /lib/command.c
parent092b63fc8f892bc9533d009449a0b7009089740d (diff)
parentef78e4fdac5a1f08cfa0d8fc1ba6a0cfd1e576db (diff)
Merge pull request #12572 from ak503/lib
lib: fix display cputime-warning and walltime-warning
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index 1fae32a04a..6d023142ab 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -502,7 +502,7 @@ static int config_write_host(struct vty *vty)
else if (cputime_threshold != 5000000)
#endif
vty_out(vty, "service cputime-warning %lu\n",
- cputime_threshold);
+ cputime_threshold / 1000);
if (!walltime_threshold)
vty_out(vty, "no service walltime-warning\n");
@@ -512,7 +512,7 @@ static int config_write_host(struct vty *vty)
else if (walltime_threshold != 5000000)
#endif
vty_out(vty, "service walltime-warning %lu\n",
- walltime_threshold);
+ walltime_threshold / 1000);
if (host.advanced)
vty_out(vty, "service advanced-vty\n");