fn test_period_average_runtime_ns()

in src/bpf_program.rs [135:149]


    fn test_period_average_runtime_ns() {
        let prog = BpfProgram {
            id: 1,
            bpf_type: "test".to_string(),
            name: "test".to_string(),
            prev_runtime_ns: 100,
            run_time_ns: 200,
            prev_run_cnt: 1,
            run_cnt: 2,
            instant: Instant::now(),
            period_ns: 0,
            processes: vec![],
        };
        assert_eq!(prog.period_average_runtime_ns(), 100);
    }