Commit 22e6afe1 authored by 王品堯's avatar 王品堯

round step counts per hour

parent 44ff14d0
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
if (quantity) { if (quantity) {
NSDate *startDate = result.startDate; NSDate *startDate = result.startDate;
NSDate *endDate = result.endDate; NSDate *endDate = result.endDate;
double value = [quantity doubleValueForUnit:unit]; int value = round([quantity doubleValueForUnit:unit]);
int startDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:startDate]; int startDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:startDate];
int endDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:endDate]; int endDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:endDate];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment