$def with (stats)
$stats.num_connections ($deluge_int(stats.max_num_connections)) $fspeed(stats.payload_download_rate) ($deluge_int(stats.max_download)) $fspeed(stats.payload_upload_rate) ($deluge_int(stats.max_upload)) $fspeed(stats.download_rate - stats.payload_download_rate),$fspeed(stats.upload_rate - stats.payload_upload_rate) $stats.dht_nodes $fsize(stats.free_space) $if stats.has_incoming_connections: $else: