MCPcopy Create free account
hub / github.com/acl-dev/acl / ping_report

Method ping_report

app/net_tools/net_toolsDlg.cpp:651–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651void Cnet_toolsDlg::ping_report(size_t total, size_t curr, size_t nerror)
652{
653 if (total > 0)
654 {
655 int nStept;
656
657 nStept = (int) ((curr * 100) / total);
658 m_wndMeterBar.GetProgressCtrl().SetPos(nStept);
659 }
660
661 CString msg;
662 msg.Format("%d/%d; failed: %d", curr, total, nerror);
663 m_wndMeterBar.SetText(msg, 1, 0);
664}
665
666void Cnet_toolsDlg::ping_finish(const char* dbpath)
667{

Callers

nothing calls this directly

Calls 2

SetPosMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected