Lines Matching refs:vals
635 * sdbcvals_t *vals - pointer to the structure that will receive the values
643 sdbc_getvalues(sdbcstat_t *sdbcstat, sdbcvals_t *vals, int flags)
663 vals->cache_read =
665 vals->disk_read =
669 vals->total_reads = vals->cache_read + vals->disk_read;
671 if (vals->cache_read == 0)
672 vals->read_hit = 0.0;
674 vals->read_hit =
675 ((float)vals->cache_read / vals->total_reads) * 100.0;
678 vals->cache_write =
680 vals->disk_write =
683 vals->total_writes = vals->cache_write + vals->disk_write;
685 vals->destaged =
688 if (vals->cache_write == 0)
689 vals->write_hit = 0.0;
691 vals->write_hit = ((float)vals->cache_write /
692 (vals->total_writes - vals->destaged)) * 100.0;
695 vals->write_cancellations =
698 vals->total_cache = vals->cache_read + vals->cache_write;
699 vals->total_disk = vals->disk_read + vals->disk_write;
702 vals->cache_hit = 0;
705 if (vals->cache_read != 0) {
706 vals->cache_hit += vals->read_hit;
710 if (vals->cache_write != 0) {
711 vals->cache_hit += vals->write_hit;
715 if (vals->cache_hit)
716 vals->cache_hit /= (float)factors;
727 vals->cache_read /= divisor;
728 vals->disk_read /= divisor;
729 vals->total_reads /= divisor;
731 vals->cache_write /= divisor;
732 vals->disk_write /= divisor;
733 vals->total_writes /= divisor;
735 vals->total_cache /= divisor;
736 vals->total_disk /= divisor;
738 vals->destaged /= divisor;
739 vals->write_cancellations /= divisor;