Skip to content

Commit 3c2d737

Browse files
authored
Merge pull request #4 from bluehawk/emonpi
trimfeedstart doesn't update npoints
2 parents 69aa02c + 8dccc42 commit 3c2d737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

processes/trimfeedstart.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function trimfeedstart($dir,$processitem)
2929
}
3030

3131
if (!$if = @fopen($dir.$feedid.".dat", 'rb')) {
32-
echo "ERROR: could not open $dir $feedid.dat\n";
32+
echo "ERROR: could not open $dir$feedid.dat\n";
3333
return false;
3434
}
3535

@@ -52,6 +52,7 @@ function trimfeedstart($dir,$processitem)
5252
fclose($of);
5353

5454
$meta->start_time = $trimtime;
55+
$meta->npoints = $length;
5556
createmeta($dir,$feedid,$meta);
5657

5758
return true;

0 commit comments

Comments
 (0)