Skip to content
  • This project
    • Loading...
  • Sign in

Jeremy Groot / stellervista-Intranet

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • stellervista-Intranet
  • wp-content
  • plugins
  • ninja-forms
  • includes
  • Telemetry
  • MaxMetric.php
  • Jeff Balicki's avatar
    ninja form · ee3abc03 ...
    ee3abc03
    Signed-off-by: Jeff <jeff@gotenzing.com>
    Jeff Balicki committed 2023-02-27 14:57:14 -0500
MaxMetric.php 233 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
<?php

class NF_Telemetry_MaxMetric extends NF_Telemetry_Metric
{
    public function update( $value )
    {
        $old_max = $this->get();
        $new_max = max( $old_max, $value );
        return $this->save( $new_max );
    }
}