mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
examples: simplify and reorder output of poll_coindesk_bitcoin_vs_usd_rate.v
This commit is contained in:
parent
6845db9831
commit
561efd1463
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ fn show_result(i u64, res PriceResult, delta f64) {
|
|||
term.red
|
||||
}
|
||||
cdelta := term.colorize(color, sdelta)
|
||||
log.info('cycle: ${i:5} | ${res.chart_name} | updated_iso: ${res.time.updated_iso} | USD rate: ${res.bpi['USD'].rate_float:10.3f} | delta: ${cdelta}')
|
||||
log.info('${cdelta}, ${res.bpi['USD'].rate_float:10.3f} USD/BTC, ${res.time.updated_iso}, cycle: ${i:5}')
|
||||
}
|
||||
|
||||
struct PriceTime {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue