bins/xin-status: add uptime to ouput

This commit is contained in:
Aaron Bieber 2024-04-22 05:52:39 -06:00
parent 2430ceb9e0
commit a2804f73ba
No known key found for this signature in database

View File

@ -18,7 +18,10 @@
$info->{system_diff} = encode_base64($sys_diff); $info->{system_diff} = encode_base64($sys_diff);
$info->{uname_a} = `uname -a`; $info->{uname_a} = `uname -a`;
$info->{uptime} = `uptime`;
chomp $info->{uname_a}; chomp $info->{uname_a};
chomp $info->{uptime};
print encode_json $info; print encode_json $info;
'' ''