vibrator: Fix vibrator latency suez stats reporting

Stop min latency from overwriting max latency

Bug: 266025768
Test: flash to device with frequent reporting and inspect logs
Change-Id: I05be98a10233521154eeefca5cc9119536b6ab06
Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
diff --git a/vibrator/cs40l25/Stats.h b/vibrator/cs40l25/Stats.h
index 0181d21..f6a7a34 100644
--- a/vibrator/cs40l25/Stats.h
+++ b/vibrator/cs40l25/Stats.h
@@ -269,7 +269,7 @@
                 mMinLatencies[mCurrentLatencyIndex] = latency;
             }
             if (latency > mMaxLatencies[mCurrentLatencyIndex]) {
-                mMinLatencies[mCurrentLatencyIndex] = latency;
+                mMaxLatencies[mCurrentLatencyIndex] = latency;
             }
             mLatencyTotals[mCurrentLatencyIndex] += latency;
             mLatencyCounts[mCurrentLatencyIndex]++;
diff --git a/vibrator/cs40l26/Stats.h b/vibrator/cs40l26/Stats.h
index b76e1b8..3948006 100644
--- a/vibrator/cs40l26/Stats.h
+++ b/vibrator/cs40l26/Stats.h
@@ -237,7 +237,7 @@
                 mMinLatencies[mCurrentLatencyIndex] = latency;
             }
             if (latency > mMaxLatencies[mCurrentLatencyIndex]) {
-                mMinLatencies[mCurrentLatencyIndex] = latency;
+                mMaxLatencies[mCurrentLatencyIndex] = latency;
             }
             mLatencyTotals[mCurrentLatencyIndex] += latency;
             mLatencyCounts[mCurrentLatencyIndex]++;