Warning: session_start(): open(/var/lib/php/sessions/sess_b5tlm0ek0tdmqf6fc91b28deui, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
concept G22TravelLogEntry {
settable S computerID;
settable S computerDescription;
settable Timestamp timestamp;
settable S gazelleCompilationDate;
settable File projectDir;
settable long projectSize;
settable int fileCount;
settable int conceptCount;
settable long conceptIDCounter;
settable Timestamp lastConceptChange;
settable Timestamp lastFileChange;
// It will be nice to always put something in here
// (Why was this entry made?)
settable S action;
// these are optional
settable S importedFromURL;
settable File importedFromFile;
settable S backedUpToURL;
settable File backedUpToFile;
settable S comment;
selfType create(G22Utils g22utils) {
var cc = g22utils.concepts();
ret new selfType()
.computerID(computerID())
.timestamp(tsNow())
.gazelleCompilationDate(g22utils.compilationDate())
.projectDir(g22utils.projectDir())
.conceptCount(countConcepts(cc))
.conceptIDCounter(cc.idCounter)
.lastConceptChange(main lastConceptChange(cc));
}
void scanProject(G22Utils g22utils) {
L files = findAllFiles_noDirs(g22utils.projectDir());
this
.lastFileChange(toTimestamp(max(map modificationTime(files))))
.projectSize(longSum fileSize(files))
.fileCount(l(files));
}
}