mirror of
https://github.com/vlang/v.git
synced 2025-09-08 23:07:19 -04:00
examples: simplify and reorder output of poll_coindesk_bitcoin_vs_usd_rate.v
This commit is contained in:
parent
6845db9831
commit
561efd1463
@ -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…
x
Reference in New Issue
Block a user