@@ -522,15 +522,15 @@ EventProcessor::start(int n_event_threads, size_t stacksize)
522522
523523 // Event loop timings.
524524 for (Graph::raw_type id = 0 ; id < Graph::N_BUCKETS; ++id) {
525- snprintf (name, sizeof (name), " %s%" PRIu64 " ms " , EThread::Metrics::LOOP_HISTOGRAM_STAT_STEM.data (),
526- EThread::Metrics::LOOP_HISTOGRAM_BUCKET_SIZE.count () * Graph::lower_bound (id));
525+ snprintf (name, sizeof (name), " %s%zums " , EThread::Metrics::LOOP_HISTOGRAM_STAT_STEM.data (),
526+ static_cast < size_t >( EThread::Metrics::LOOP_HISTOGRAM_BUCKET_SIZE.count () * Graph::lower_bound (id) ));
527527 RecRegisterRawStat (rsb, RECT_PROCESS, name, RECD_INT, RECP_NON_PERSISTENT, stat_idx++, NULL );
528528 }
529529
530530 // plugin API timings
531531 for (Graph::raw_type id = 0 ; id < Graph::N_BUCKETS; ++id) {
532- snprintf (name, sizeof (name), " %s%" PRIu64 " ms " , EThread::Metrics::API_HISTOGRAM_STAT_STEM.data (),
533- EThread::Metrics::API_HISTOGRAM_BUCKET_SIZE.count () * Graph::lower_bound (id));
532+ snprintf (name, sizeof (name), " %s%zums " , EThread::Metrics::API_HISTOGRAM_STAT_STEM.data (),
533+ static_cast < size_t >( EThread::Metrics::API_HISTOGRAM_BUCKET_SIZE.count () * Graph::lower_bound (id) ));
534534 RecRegisterRawStat (rsb, RECT_PROCESS, name, RECD_INT, RECP_NON_PERSISTENT, stat_idx++, NULL );
535535 }
536536
0 commit comments