shithub: front

Download patch

ref: 3d497649e78ba58709ce5690489dd6d418f0db7b
parent: 7059938e9449f161805c79a7129da5ede7a3dafe
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Aug 20 00:27:40 EDT 2024

gefs: use correct snap name with autosnaps

*shame*

--- a/sys/src/cmd/gefs/fs.c
+++ b/sys/src/cmd/gefs/fs.c
@@ -2721,7 +2721,7 @@
 			if(now.yday != then.yday){
 				snprint(buf, sizeof(buf),
 					"%s@day.%τ", mnt->name, tmfmt(&now, "YYYY.MM.DD[_]hh:mm:ss"));
-				snapmsg("main", buf, Lauto);
+				snapmsg(mnt->name, buf, Lauto);
 			}
 			if(now.hour != then.hour){
 				if(mnt->hourly[h][0] != 0)
@@ -2728,7 +2728,7 @@
 					snapmsg(mnt->hourly[h], nil, 0);
 				snprint(mnt->hourly[h], sizeof(mnt->hourly[h]),
 					"%s@hour.%τ", mnt->name, tmfmt(&now, "YYYY.MM.DD[_]hh:mm:ss"));
-				snapmsg("main", mnt->hourly[h], Lauto);
+				snapmsg(mnt->name, mnt->hourly[h], Lauto);
 			}
 			if(now.min != then.min){
 				if(mnt->minutely[m][0] != 0)
@@ -2735,7 +2735,7 @@
 					snapmsg(mnt->minutely[m], nil, 0);
 				snprint(mnt->minutely[m], sizeof(mnt->minutely[m]),
 					"%s@minute.%τ", mnt->name, tmfmt(&now, "YYYY.MM.DD[_]hh:mm:ss"));
-				snapmsg("main", mnt->minutely[m], Lauto);
+				snapmsg(mnt->name, mnt->minutely[m], Lauto);
 			}
 		}
 		if(now.hour != then.hour)
--