cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/autoscaling/VerticalVmCpuScalingExample.java
private void onClockTickListener(EventInfo evt) {
        vmList.forEach(vm -> {
            Log.printFormatted("\t\tTime %6.1f: Vm %d CPU Usage: %6.2f%% (%2d vCPUs. Running Cloudlets: #%d)\n",
                evt.getTime(), vm.getId(), vm.getCpuPercentUsage()*100.0,
                vm.getNumberOfPes(), vm.getCloudletScheduler().getCloudletExecList().size());
        });
    }
/**
     * Shows updates every time the simulation clock advances.
     * @param evt information about the event happened (that for this Listener is just the simulation time)
     */
Shows updates every time the simulation clock advances.
@param evt information about the event happened (that for this Listener is just the simulation time)
Shows updates every time the simulation clock advances . @param evt information about the event happened ( that for this Listener is just the simulation time )
private void onClockTickListener(EventInfo evt) {
        vmList.forEach(vm -> {
            Log.printFormatted("\t\tTime %6.1f: Vm %d CPU Usage: %6.2f%% (%2d vCPUs. Running Cloudlets: #%d)\n",
                evt.getTime(), vm.getId(), vm.getCpuPercentUsage()*100.0,
                vm.getNumberOfPes(), vm.getCloudletScheduler().getCloudletExecList().size());
        });
    }
private void onClockTickListener ( EventInfo evt ) { vmList . forEach ( vm -> { Log . printFormatted ( "\t\tTime %6.1f: Vm %d CPU Usage: %6.2f%% (%2d vCPUs. Running Cloudlets: #%d)\n" , evt . getTime ( ) , vm . getId ( ) , vm . getCpuPercentUsage ( ) * 100.0 , vm . getNumberOfPes ( ) , vm . getCloudletScheduler ( ) . getCloudletExecList ( ) . size ( ) ) ; } ) ; }
Shows updates every time the simulation clock advances.
Shows updates every time the simulation clock advances .