everything wrong with free software

 "obedience breeds foolishness"

### ewwfs-stats other articles: => the-fsf-doesnt-care.html the-fsf-doesnt-care => how-to-deal-with-your-raspberry-spy.html how-to-deal-with-your-raspberry-spy *originally posted:* mar 2021 the point of this post is less about the ewwfs stats themselves, and more about the program that processes the numbers. if you are able to get a csv file of daily stats from neocities, this program will turn the daily stats into more useful weekly stats and create a bar graph on the command line: => https://wrongwithfreesw.neocities.org/stats.png it is a flat representation of this graph: => https://wrongwithfreesw.neocities.org/graph.png the program works without the grep line, you can just cat the file to the program instead. the grep line starts on the first sunday of this particular file. the program shows the date each week begins along with other data. it is tuned to show up to 10 mb of bandwidth in 80 characters. the program is created for fig 5.0 and the public domain source is included here. ``` #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ function plot dt vie vis bw buf1 = vis str buf2 = vie str buf3 = bw str buf4 = " " times 1000 buf = dt str plus ": " plus buf1 plus " " plus buf2 plus " " plus buf3 plus " " plus buf4 left 80 band = bw divby 125000 int views = vie divby 80 int visitors = vis divby 80 int now highlight 7 colortext 0 for p 1 80 1 ifmore p visitors now highlight 5 next ifmore p views now highlight 3 next ifmore p band now highlight 0 colortext 8 next now buf mid p 1 prints next now "" colortext 7 highlight 0 print next function output buf dt = buf mid 1 1 mid 1 10 blen = buf len viesum = 0 vissum = 0 bwsum = 0 for each 1 blen 1 views = buf mid each 1 split views "," mid 2 1 int now = viesum plus views swap now viesum visitors = buf mid each 1 split visitors "," mid 3 1 int now = vissum plus visitors swap now vissum band = buf mid each 1 split band "," mid 4 1 int now = bwsum plus band swap now bwsum next views = viesum visitors = vissum band = bwsum now plot dt views visitors band next p = arrstdin buf arr mid 1 0 now colortext 0 highlight 7 " visitors " prints now colortext 0 highlight 5 " views " prints now colortext 0 highlight 3 " bandwidth " prints now "" colortext 7 highlight 0 print print forin each p buf plus each blen = buf len ifmore blen 6 now = output buf buf arr mid 1 0 next next blen buf len ifmore blen 0 now = output buf next now "" colortext 7 highlight 0 print ``` => https://wrongwithfreesw.neocities.org