Web page to reset the counter
[ampy.git] / html / ampy.inc.php
index 4c9828ffdbfb057ee4ae78be79bafeb77f4b7385..947fa665448c477fe44a53af1aca6b90854c2d03 100644 (file)
@@ -16,6 +16,7 @@ function ampy_flush_rrd_daemon() {
 function ampy_set_counter($newcounter) {
        file_put_contents(COUNTERFILE.'.new', $newcounter);
        rename(COUNTERFILE.'.new', COUNTERFILE);
+       trigger_error("Counter was reset to $newcounter", E_USER_WARNING);
 }
 
 /*