madMAx43v3r / chia-plotter

Apache License 2.0
2.27k stars 664 forks source link

Show current time in screen output #706

Closed njardus closed 2 years ago

njardus commented 3 years ago

When I return to my CLI, I can see the my plotter is busy with "Crafting plot 3 of 3", but I can't tell what time it started. A timestamp on select lines (start of each phase?) would help a lot.

oroian-raul commented 3 years ago

Timestamp would indeed be amazing. Any log parsers would benefit from them a lot, not having to worry about duplicates if they are restarted on the same file.

Dartellum commented 3 years ago

I built a loop, log, and final destination finder based on the used space bash script. It is here: https://github.com/Dartellum/chia-madmax-plot_loop. Output looks like this:

chia@chia-test1:~$ ./plot_loop.sh 1
New Mount Point is /media/plots-02/farm/.
Currently plotting number 1 of 1 and started on 2021-07-03_00_40_32.
Log file name is /home/chia/chialogs/2021-07-03_00_40_32_plot-1.log.
Multi-threaded pipelined Chia k32 plotter - 17fd633
(Sponsored by Flexpool.io - Check them out if you're looking for a secure and scalable Chia pool)

Final Directory: /media/plots-02/farm/
Number of Plots: 1
Crafting plot 1 out of 1
Process ID: 348640
Number of Threads: 4
Number of Buckets P1:    2^7 (128)
Number of Buckets P3+P4: 2^7 (128)
Pool Public Key: 
Farmer Public Key: 
Working Directory:   /media/tempdir/temp/
Working Directory 2: /media/tempdir2/temp/
Plot Name: plot-k32-2021-07-03-00-40-e22f186420aac843cd5f508eac0eef18c9c5b611456f9dbc803126ee5923c2bb
Plotting lines here...
madMAx43v3r commented 2 years ago

Done in dfa68ea99b5f7c268a2e3f8dba7054568dff79ae