You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason you're seeing two is that it tries to show an interactive progress bar while touching, by printing "\r" to go back to the beginning of the line and overwriting with a new progress bar. I believe it does this at the beginning and the end of processing each file, which is why you're seeing 2 even though you're not touching (just displaying).
I agree this looks like a bug. I'll think about the best way to solve this and update this ticket when I do.
In the meantime, you can eliminate the excess lines with the following:
Having looked at the code, the carriage return characters can be eliminated for the case where -v is used on the command line without -t. The changes are available in pull request #97.
Activity
hoytech commentedon Jun 6, 2017
Hi,
The reason you're seeing two is that it tries to show an interactive progress bar while touching, by printing "\r" to go back to the beginning of the line and overwriting with a new progress bar. I believe it does this at the beginning and the end of processing each file, which is why you're seeing 2 even though you're not touching (just displaying).
I agree this looks like a bug. I'll think about the best way to solve this and update this ticket when I do.
In the meantime, you can eliminate the excess lines with the following:
cat vmtouch.out | perl -pe 's/^.*\r//'
Thanks for the report!
pfee commentedon Apr 14, 2022
I've encountered the same issue, reproduced with:
My use case is to regularly display
vmtouchoutput using thewatchutility.Having output repeated twice is undesirable. Perhaps
vmtouchcould have a flag to disable the interactive progress bar and its use of\r.pfee commentedon Apr 15, 2022
Having looked at the code, the carriage return characters can be eliminated for the case where
-vis used on the command line without-t. The changes are available in pull request #97.