Closed Profoktor closed 9 months ago
Issue Type
Bug report / Enhancement Request
Issue Detail
Expected Behavior
"Uptime" gives the uptime at point in time of the current login
Actual Behavior
"Uptime" gives the uptime at point in time of previous login
How to reproduce Behavior
login & compare with uptime / check /usr/share/firemotd/data/FireMotD.json
/usr/share/firemotd/data/FireMotD.json
cat /usr/share/firemotd/data/FireMotD.json | grep Uptime -A 7 "Uptime": { "Generated": "@logon", "Days": "0", "Hours": "**10**", "Minutes": "**10**", "Seconds": "**42**", "LastRun": "2023-12-20 01:08:56,246" }, uptime 01:10:44 up **10:12**, 1 user, load average: 0.19, 0.14, 0.16
logout & login
Last login: Wed Dec 20 01:08:55 2023 from 2a01:41e3:507b:3000:29ec:b392:d7c5:95bb ############################################################################### ############### homestation ################################################# ############################################################################### ## Ip = 192.168.178.55 ## Release = Raspbian GNU/Linux 11 (bullseye) ## Kernel = Linux 6.1.21-v8+ ## Platform = Raspberry Pi 4 Model B Rev 1.1 ## Uptime = 0 day(s). **10:10:42** ... cat /usr/share/firemotd/data/FireMotD.json | grep Uptime -A 7 "Uptime": { "Generated": "@logon", "Days": "0", "Hours": "**10**", "Minutes": "**12**", "Seconds": "**49**", "LastRun": "2023-12-20 01:11:03,204" },
Can be closed. Happens due to implementation in Distro
https://github.com/openhab/openhabian/blob/8bd54fed98511ec85b2dba4a6b08630a8205bbb9/includes/generic/bash_profile#L30
Issue Type
Bug report / Enhancement Request
Issue Detail
Expected Behavior
"Uptime" gives the uptime at point in time of the current login
Actual Behavior
"Uptime" gives the uptime at point in time of previous login
How to reproduce Behavior
login & compare with uptime / check
/usr/share/firemotd/data/FireMotD.json
logout & login