Reference

SLOG_SetPreviewStatisticsSize(3)

Set/Override the default number of bins of the statistics array.

NAME

SLOG_SetPreviewStatisticsSize - Set/Override the default number of bins of the statistics array.

SYNOPSIS

int SLOG_SetPreviewStatisticsSize(       SLOG_STREAM     *slog,
                                   const SLOG_uint32      stat_bin_size )

UNMODIFIED INPUT PARAMETER

stat_bin_size

- the number of bin of the statistics array.

MODIFIED INPUT PARAMETER

slog

- pointer to the SLOG_STREAM where interval records are stored.

MODIFIED OUTPUT PARAMETER

returned value

- integer return status code.

INCLUDE FILE NEED

slog_pstat.h

NOTES ON SLOG RETURN STATUS CODE

There are 5 allowed SLOG returned status codes. They include SLOG_SUCCESS, SLOG_FAIL and SLOG_EOF. Their actual values are defined in slog.h

SLOG_SUCCESS is returned when no error is encountered.

SLOG_FAIL is returned when error is encounted.

SLOG_EOF is returned when End of file is encounted.

There are also SLOG_TRUE and SLOG_FALSE which are sued as boolean values, in particular they are used in boolean functions which are usually named as IsXXXXX(), AreXXXXX() and HasXXXXX().

LOCATION