Skip to content

Commit

Permalink
Add 'system.startup_time' command (See #150)
Browse files Browse the repository at this point in the history
  • Loading branch information
chros authored and chros committed Aug 27, 2018
1 parent 295af4d commit 4504e01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ubuntu-14.04/home/chros73/.pyroscope/rtorrent-ps.rc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ method.insert = quit, simple, "execute.throw=kill,-INT,(system.pid)"
branch=(not, (pyro.extended)), ((method.insert, ui.column.render, multi|rlookup|static))

# COMMAND: Return startup time (can be used to calculate uptime)
method.insert = startup_time,value|const,$system.time=
method.insert = system.startup_time, value|const, $system.time=
method.redirect = startup_time, system.startup_time

# COMMAND: Returns elapsed time between 2 timestamps in the form of "6 years, 5 months, 18 days, 02:40:00" (year/month info isn't shown if their value is 0)
method.insert = get_elapsed_time, simple, "execute.capture=(cat,(pyro.bin_dir),getElapsedTime.sh), (argument.0), (argument.1)"
Expand Down

0 comments on commit 4504e01

Please sign in to comment.