Skip to content

api call for uptime returns plaintext not json #2025

Answered by PoleCatRoad
PoleCatRoad asked this question in Q&A
Discussion options

You must be logged in to vote

It seems glances must run a task, maybe at startup, that gets the public ip. This means it would not change what is reported if/when my isp changes my ip until glances restarts.

cat /proc/uptime show uptime in seconds, which is probably where --issue gets it. The simple command 'uptime' returns the formatted information so this is reported via api. Why they are handled differently I can't guess. So just those minor confusions in the documentation.

This concludes my several hour trip into proc and psutil.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ACrazyConcept
Comment options

@PoleCatRoad
Comment options

Answer selected by PoleCatRoad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants