tobert / pcstat

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

Ignore zero length files #8

Closed eribeiro closed 9 years ago

eribeiro commented 9 years ago

When I was using pcstat to analyse Solr index files, the write.lock index file would sometimes be empty. It would be nice if pcstat could just ignore those files instead of throwing an exception and aborting execution, maybe throwing a warning instead. https://github.com/tobert/pcstat/blob/master/pcstatus.go#L59-L61

ps: it has been a handy tool to investigate DSE Search performance problems. ;)

tobert commented 9 years ago

That was a particularly silly error on my part. Fixed in f5eaebdb412c7b74d3e14c46d3d535a1c7525d0b