tobert / pcstat

Page Cache stat: get page cache stats for files on Linux
Apache License 2.0
1.23k stars 153 forks source link

Add time information to output #3

Open tobert opened 10 years ago

tobert commented 10 years ago

Add -mtime -atime -ctime to include them in the output. With relatime, it's probably useful enough to see how long the file has been untouched. For apps that write into files, mtime is always useful. ctime is included because while I can't think of a use for it right now, it's on the way and completes the trio.

Also add timestamps to all output. Pick a format for JSON that's easy to load in Javascript (probably unix epoch).