FalconStats icon indicating copy to clipboard operation
FalconStats copied to clipboard

Column alignment

Open jennydaman opened this issue 7 years ago • 0 comments

In the original script, columns would be misaligned because df is called several times on different mount points, so its spacing would be different when filesystem names differ in length.

image

I refactored the code to call df only once. $line is extracted using grep.

  • titeled="1" was a filthy hack
  • column spacing issue fixed
  • This gives flexibility because you can specify either filesystem or mount point, but specifying / as a mount point won't work anymore.

jennydaman avatar Jul 27 '18 17:07 jennydaman