Change in libosmocore[master]: vty: add "show uptime"

pespin gerrit-no-reply at lists.osmocom.org
Mon Jul 12 18:15:50 UTC 2021


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/24924 )

Change subject: vty: add "show uptime"
......................................................................


Patch Set 1:

(2 comments)

https://gerrit.osmocom.org/c/libosmocore/+/24924/1/src/vty/command.c 
File src/vty/command.c:

https://gerrit.osmocom.org/c/libosmocore/+/24924/1/src/vty/command.c@67 
PS1, Line 67: time_t uptime;
static


https://gerrit.osmocom.org/c/libosmocore/+/24924/1/src/vty/command.c@4345 
PS1, Line 4345: 	uptime = time(NULL);
what about calling it in a lib constructor? this way we ensure it's set as soon as the process is loaded.



-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24924
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ic7d9d5d3c8a9abd06a7e626aed7679f68406040c
Gerrit-Change-Number: 24924
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Mon, 12 Jul 2021 18:15:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210712/d1170b1f/attachment.htm>


More information about the gerrit-log mailing list