-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I'm working on Ncurses based disk usage analyzer. The only way I have found to get directories' sizes is to use lstat() and get it through the st_size field. So I made a recursive function (which is named get_dir_tree()), it reads the directories content and if it's a file it uses lstat() on it, if it's a directory it calls itself recursively. However I have found that it gives larger results than other disk usage analyzers like du, ncdu and baobab and I can't find out why, so any help is really appreciated. Here is the file on Github that contains the function and it is on line 282.
Disk Usage Analyzer (baobab)